Actually now i have this message that appear in my browser after uploading :its 
not possible to access to the page : xn--rad-pc-cva:8888.
Le jeudi 27 juin 2013 04:47:31 UTC+2, ben younes raed a écrit :
>
> Hi :)
>
> Yes I changed the form action.
>
> and this is the URL displayed in my browser : 
> http://raéd-pc:8888/_ah/upload/ag1jYy1nMDE5LXR1YmxychsLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18YLQw<http://xn--rad-pc:8888-cbb/_ah/upload/ag1jYy1nMDE5LXR1YmxychsLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18YLQw>
>
> I tried to change getUploadedBlobs with getUploads but i have now other 
> errors in Eclipse to deal with,for example (Cannot cast from List<BlobKey> 
> to BlobKey)
> so this is how i change the doPost from my servlet :
> public void doPost(HttpServletRequest req, HttpServletResponse res) throws 
> IOException {
>  Map<String, List<BlobKey>> blobs = blobstoreService.getUploads(req);
> List<BlobKey> Key = blobs.get("post_image");
>     BlobKey blobKey = Key.get(0);
> if (blobKey == null) {
>             res.sendRedirect("/");
>         } else {
>             res.sendRedirect("/tublr?blob-key=" +( 
> blobKey).getKeyString());
>         
>         }
> }
>
> I have a read cross in this folder TUBlr/war,other ways i dont have any 
> errors on eclipse.Besides when i access to 
> http://127.0.0.1:8888/_ah/admin/datastore i found :
>
>
> <https://lh3.googleusercontent.com/-qpqCA-ocWSw/Ucunih7V0iI/AAAAAAAAAtM/6kUFaTITTgw/s1600/Untitled20130627044607.png>
>
>  
> Le jeudi 27 juin 2013 01:40:32 UTC+2, Vinny P a écrit :
>>
>> On Wed, Jun 26, 2013 at 5:16 PM, ben younes raed <raed...@gmail.com>wrote:
>>
>>> it looks like my servlet jsp config doesn't fit to the URL ? what should 
>>> I do ? 
>>>
>>>  
>>  
>> 1. Did you change the form action to:
>> BlobstoreServiceFactory.getBlobstoreService().createUploadUrl("/tublr");
>>  
>> 2.  getUploadedBlobs is deprecated, you may want to change that to 
>> getUploads
>>  
>> 3. When you get the 404 redirect page, what is the URL displayed in your 
>> browser? 
>>  
>> 4. Are there any errors displayed in your Eclipse?
>>  
>>  
>>  
>>  -----------------
>>  -Vinny P
>> Technology & Media Advisor
>> Chicago, IL
>>
>> App Engine Code Samples: http://www.learntogoogleit.com
>>   
>>  
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to