i am developing an application on Google app Engine i am saving HTML text in datastore using com.google.appengine.api.datastore.Text. All transaction working fine except for partial string which is stored in datastore. i don't the exact problem.
1 Answer
The "java.lang.String" that you would typically use is limited to 500 characters.
You need to import and use
import com.google.appengine.api.datastore.Text;
....
class HtmlItem {
@Persistent
private Text html;
}
3 Comments
Altaf Rahman
yeah i8ts is certainly working but all the characters are not saved in data-store i have already tried this.
Derrick
This is the only way you can do what the code is describing. The code works... If there is a problem, it's not with this code.
Derrick
@MotokoKusanagi No, it does not explain how to get to the problem... This explains how to use the "Text" class to properly store large strings to GAE.