You should be able to upload a file up to 10 MB (the maximum request size)
but you won't be able to persist it in the datastore unless you split the
file into 1 MB chunks (the maximum entity size). You can write the code to
do this yourself, but you may also want to look at existing abstraction
layers that do this for you:
http://code.google.com/p/gaevfs/

- Jason

On Thu, Aug 27, 2009 at 12:38 AM, Shawn <[email protected]> wrote:

>
> Hi,all.
>
>     How to upload larger than than 1M size file?I try to use the
> google plugin for eclipse to upload.But the
>
> message like this:
>
>
> java.io.IOException: Error posting to URL:
>
> http://appengine.google.com/api/appversion/addfile?path=WEB-INF%2Fclasses%2Fcom%2Fip%2FQQWry.Dat&app_id=publicgetip&version=1&;
> 500 ( The specified network name is no longer available.  )
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD><TITLE>Error Message</TITLE>
> <META http-equiv=Content-Type content="text/html; charset=UTF-8">
> <STYLE id=L_64_1>A {
>        FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #005a80; FONT-FAMILY:
> tahoma
> }
> A:hover {
>        FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #0d3372; FONT-FAMILY:
> tahoma
> }
> TD {
>        FONT-SIZE: 8pt; FONT-FAMILY: tahoma
> }
> TD.titleBorder {
>        BORDER-RIGHT: #955319 1px solid; BORDER-TOP: #955319 1px solid;
> PADDING-LEFT: 8px; FONT-WEIGHT: bold; FONT-SIZE: 12pt; VERTICAL-ALIGN:
> middle; BORDER-LEFT: #955319 0px solid; COLOR: #955319; BORDER-BOTTOM:
> #955319 1px solid; FONT-FAMILY: tahoma; HEIGHT: 35px; BACKGROUND-
> COLOR: #d2b87a; TEXT-ALIGN: left
> }
> TD.titleBorder_x {
>        BORDER-RIGHT: #955319 0px solid; BORDER-TOP: #955319 1px solid;
> PADDING-LEFT: 8px; FONT-WEIGHT: bold; FONT-SIZE: 12pt; VERTICAL-ALIGN:
> middle; BORDER-LEFT: #955319 1px solid; COLOR: #978c79; BORDER-BOTTOM:
> #955319 1px solid; FONT-FAMILY: tahoma; HEIGHT: 35px; BACKGROUND-
> COLOR: #d2b87a; TEXT-ALIGN: left
> }
> .TitleDescription {
>        FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY:
> tahoma
> }
> SPAN.explain {
>        FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #934225
> }
> SPAN.TryThings {
>        FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #934225
> }
> .TryList {
>        MARGIN-TOP: 5px; FONT-WEIGHT: normal; FONT-SIZE: 8pt; COLOR: black;
> FONT-FAMILY: tahoma
> }
> .X {
>        BORDER-RIGHT: #955319 1px solid; BORDER-TOP: #955319 1px solid;
> FONT-
> WEIGHT: normal; FONT-SIZE: 12pt; BORDER-LEFT: #955319 1px solid;
> COLOR: #7b3807; BORDER-BOTTOM: #955319 1px solid; FONT-FAMILY:
> verdana; BACKGROUND-COLOR: #d1c2b4
> }
> .adminList {
>        MARGIN-TOP: 2px
> }
> </STYLE>
> <META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
> <BODY bgColor=#f3f3ed>
> <TABLE cellSpacing=0 cellPadding=0 width="100%">
>  <TBODY>
>  <TR>
>    <TD class=titleborder_x width=30>
>      <TABLE height=25 cellSpacing=2 cellPadding=0 width=25
> bgColor=black>
>        <TBODY>
>        <TR>
>          <TD class=x vAlign=center align=middle>X</TD>
>        </TR>
>        </TBODY>
>      </TABLE>
>    </TD>
>    <TD class=titleBorder id=L_64_2>Network Access Message:<SPAN
> class=TitleDescription> The page cannot be displayed</SPAN> </TD>
>  </TR>
>  </TBODY>
> </TABLE>
>
> <TABLE id=spacer>
>  <TBODY>
>  <TR>
>    <TD height=10></TD></TR></TBODY></TABLE>
> <TABLE width=400>
>  <TBODY>
>  <TR>
>    <TD noWrap width=25></TD>
>    <TD width=400><SPAN class=explain><ID id=L_64_3><B>Explanation:</
> B></ID></SPAN><ID id=L_64_4> The request timed out before the page
> could be retrieved. </ID><BR><BR>
>    <B><SPAN class=tryThings><ID id=L_64_5><B>Try the following:</B></
> ID></SPAN></B>
>      <UL class=TryList>
>        <LI id=L_64_6><B>Refresh page:</B> Search for the page again
> by clicking the Refresh button. The timeout may have occurred due to
> Internet congestion.
> <LI id=L_64_7><B>Check spelling:</B> Check that you typed the Web page
> address correctly. The address may have been mistyped.
> <LI id=L_64_8><B>Access from a link:</B> If there is a link to the
> page you are looking for, try accessing the page from that link.
> <LI id=L_64_9><B>Contact website:</B> You may want to contact the
> website administrator to make sure the Web page still exists. You can
> do this by using the e-mail address or phone number listed on the
> website home page.
>
>      </UL>
> <ID id=L_64_10>If you are still unable to view the requested page, try
> contacting your administrator or Helpdesk.</ID> <BR><BR>
>    </TD>
>  </TR>
>  </TBODY>
> </TABLE>
>
> <TABLE id=spacer><TBODY><TR><TD height=15></TD></TR></TBODY></TABLE>
>
> <TABLE width=400>
>  <TBODY>
>  <TR>
>    <TD noWrap width=25></TD>
>    <TD width=400 id=L_64_11><B>Technical Information (for support
> personnel)</B>
>      <UL class=adminList>
>        <LI id=L_64_12>Error Code 64: Host not available
> <LI id=L_64_13>Background: The gateway or proxy server lost connection
> to the Web server.
> <LI id=L_64_14>Date: 2009-8-26 7:59:08 [GMT]
> <LI id=L_64_15>Server: cd-gateway-CT.chengdu.ecwise.com
> <LI id=L_64_16>Source: Remote server
>
>      </UL>
>    </TD>
>  </TR>
>  </TBODY>
> </TABLE>
>
> </BODY>
> </HTML>
>        at com.google.appengine.tools.admin.ServerConnection.send
> (ServerConnection.java:143)
>        at com.google.appengine.tools.admin.ServerConnection.post
> (ServerConnection.java:95)
>        at com.google.appengine.tools.admin.AppVersionUpload.send
> (AppVersionUpload.java:420)
>        at com.google.appengine.tools.admin.AppVersionUpload.uploadFile
> (AppVersionUpload.java:321)
>        at com.google.appengine.tools.admin.AppVersionUpload.doUpload
> (AppVersionUpload.java:105)
>        at com.google.appengine.tools.admin.AppAdminImpl.update
> (AppAdminImpl.java:53)
>        at
> com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
> (AppEngineBridgeImpl.java:271)
>        at
> com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
> (DeployProjectJob.java:148)
>        at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
> (InternalWorkspaceJob.java:38)
>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
>
> The QQwry.dat about 7M size.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to