Hello, All!

I'm trying to upload some pictures (as Blobs) to the datastore.
Picture (<input id="fileNameField" type="file" ...) is being uploaded
with some text fields:

<input id="titleField" type="input" name="pictureTitle">
and
<input id="descriptionField" type="input" name="pictureDescription">

So, the problem is: I cannot access these my text fields (pictureTitle
and pictureDescription) in any way.
I tried well known suggestion like:
**********************************
FileItemIterator iterator = upload.getItemIterator(request);
        while (iterator.hasNext()) {
            FileItemStream item = iterator.next();
            InputStream inputStream = item.openStream();
**********************************

And simple access like: (String) request.getAttribute("pictureTitle").

No luck.

I see via FireBug, that these my 2 field are sended to this generated
upload URL (blobstoreService.createUploadUrl("/myservlet")).

But after that - they disappeared.

Even, when I use a piece of code from 
http://code.google.com/appengine/docs/java/blobstore/overview.html
"Complete Sample App" section, when we redirect request - nothing
helps.
I cannot access my text parameters.

Please, what I am doing wrong?

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

Reply via email to