[google-appengine] May I increase a size of single call to API of 1Mb?

2009-04-07 Thread Dimedrol

Hello!
I need to upload several pictures at once and save them in a
datastore.

But API is not allow me to do that, due to total images size.
For example I cannot upload from my form 2 images of 700kb size
(2x700kb=1.4mb > 1mb)

Can I increase this size for a money?

Or, maybe there are some workarounds for that?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] How to select long Strings(Text) from Datastore?

2009-06-25 Thread Dimedrol

Hello!
Please, could anybody give me a simple _step-by-step_ instruction of
how to select long Strings(Text) from Datastore?

Here is my Database Object:
*
@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable="true")
public class Captions {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;

/*
@Persistent(serialized="true", defaultFetchGroup="true")
private Text captions_label;
*/
@Persistent(serialized="true", defaultFetchGroup="true")
private Blob captions_label;
*

I've tried both "new Text(myString)" and "new Blob(myString.getBytes)"
to store in these fields, but no luck.
I always get an Exceptions either ClassCast like "String cannot be
casted to Blob", or "There is a String inside Datastore, but must be
Blob" or something similar.

Please, give me a code sample, it should not be a very difficult task.

I'm wasted 2 days and... got nothing :-|

Please, help.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---