3

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
  • 2
    It is not clear what the question is. Perhaps if you add some code that is failing this could be answered. Commented Jul 29, 2010 at 12:20

1 Answer 1

1

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;
}
Sign up to request clarification or add additional context in comments.

3 Comments

yeah i8ts is certainly working but all the characters are not saved in data-store i have already tried this.
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.
@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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.