Problem in uploading file through API
I want to upload files in to mycontent folder through our
application.After each steps followed, i get the status message ok
from the server, but file is not uploaded. Is there any idea about
this? Please help.
what do you mean exactly with 'the file is not uploaded'?
you checked in the content directory and the file isn't
there?
if so, could you please post your server side upload
code?
Similar Messages
-
Adobe Send - Problem with uploading files. When is this going to get fixed?
When is the Adobe Send problem with uploading files going to get fixed. Similar to others - I have tried and tried to make Adobe Send work and get an error. I have tried to upload the file and it looks like it uploads and then - it is nowhere to be found.
I then go to Adobe Send Now and it works fine.The problem is the same as described in other similar threads.
I have a 57 MB PowerPoint file I am trying to send using Adobe Send. I go through the normal steps to identify the file and select recipients and then send the file. After the file completes the upload - an error saying there was a problem comes up and the file is not uploaded.
I have tried to upload the file to the site with similar results - error and the file doesn't go.
I can go to the old SendNow site and it works flawlessly.
If I need to get screenshots - let me know. There are several other threads describing this same problem. It isn't something new or not heard of before.
Sent from my iPod -
Help with uploading files through form
Hey,
I have a website for a sign business and I'm trying to make
it so people can upload custom artwork. I am using an ASP Formmail
script from I think it's www.brainjar.com. If I understood
correctly from the directions, I can't upload files through that
script and I tried it once and it did not work. If anyone has any
ideas then please help. Thanks
JeremyFor security reasons many shared hosts don't permit file
uploads.
Try this in the interim
http://www.yousendit.com/
--Nancy
"dayencom" <[email protected]> wrote in
message
news:epo2ql$dsb$[email protected]..
> I just tried contacting my hosting provider:
www.ixwebhosting.com and the
guy
> was not helpful at all. He said that their hosting does
not support
uploading
> files. So I am drawing a blank now. Is there any way to
use maybe another
site
> to upload?
> -
NMH410 as a external hard drive & upload files through web browser
Hi,
I had just installed a NMH410 and has some questions as follow:
Can NMH410 be used as an external HDD without internet?
Is there anywhere I can upload files through the web browser?mosidiot wrote:
I had just installed a NMH410 and has some questions as follows:
1. Can NMH410 be used as an external HDD without internet?
Yes - The NMH is a local network device, and you can store/retrieve files on it using the computers on your home network using either Windows Explorer, or connecting to it in Linux/MacOS as a Samba share.
However: The NMH requires an Internet connection to dowload firmware updates, and - If my experiences today are anything to go on - You'll need to have up to date Flash support in your web browser to be able to configure and administrate the thing.
(See the new thread that I'll be posting in this forum shortly.)
mosidiot wrote:
2. Is there anywhere I can upload files through the web browser?
Yes - The NMH does support uploading via a web browser as long as the latter has a recent Flash plugin installed. For small numbers of files, this should work fine...But for larger numbers of files, I'd suggest using either Windows Explorer, or the Media Importer program that came on the enclosed CD-ROM. :-)
You can find full details and instructions for doing both of the above in the NMH 4xx user guide, which may be downloaded Here. :-)
Farewell... >:-)
+++ DieselDragon +++
Edit: Corrected broken link to user guide. -
Hello everyone. I am having trouble writing a utility that uses SharePoint web services to upload a file and metatag it. It keeps throwing the following error message:
"The request failed with the error message: -- <html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/_forms/default.aspx?ReturnUrl=%2fsites%2fgk%2f_vti_bin%2fcopy.asmx">here</a>.</h2>
</body></html> --."
Not sure why. I pass the file that I am going to upload to the subroutine and it is suppose to upload it to the appropriate library. I have burned several days on this problem and I am not sure what is going on. I would appreciate anyone that can point me in
the right direction. Below is the subroutine that I have that is causing the problem. Obviously, I have stripped the name from the example.
Thanks
Mike
******** <Begin snip of code> **********************
Public Shared Sub CreateNewDocumentWithCopyService(ByVal fileName As String)
Dim c As New copyservice.Copy
c.PreAuthenticate = True
c.Credentials = New System.Net.NetworkCredential("[email protected]", "mypassword")
c.Url = "https://x.sharepoint.com/sites/gk/_vti_bin/copy.asmx"
Dim myBinary As Byte() = System.IO.File.ReadAllBytes(fileName)
Dim destination As String = "https://x.sharepoint.com/sites/gk/Gatekeeper%20Reference/" & System.IO.Path.GetFileName(fileName)
Dim destinationUrl As String() = {destination}
Dim info1 As New copyservice.FieldInformation
info1.DisplayName = "Title"
info1.InternalName = "Title"
info1.Type = copyservice.FieldType.Text
info1.Value = "new title"
Dim info2 As New copyservice.FieldInformation
info2.DisplayName = "Modified By"
info2.InternalName = "Editor"
info2.Type = copyservice.FieldType.User
info2.Value = "-1;#servername\\testmoss"
Dim info As copyservice.FieldInformation() = {info1, info2}
Dim resultTest As New copyservice.CopyResult
Dim result As copyservice.CopyResult() = {resultTest}
Try
' When creating new content use the same URL in the SourceURI as in the Destination URL argument
c.CopyIntoItems(destination, destinationUrl, info, myBinary, result)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
******** <End snip of code> **********************Hi,
If you want to upload a file to a library in SharePoint 2013 online, I suggest you use Client Object Model or REST API.
The code snippets in the two threads below will be helpful:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/deac7cb7-c677-47b0-acdc-c56b32dfaac8/uploading-bigger-files-using-csom
http://stackoverflow.com/questions/17057074/how-to-download-upload-files-from-to-sharepoint-2013-using-csom
Uploading Files Using the REST API
http://blogs.msdn.com/b/uksharepoint/archive/2013/04/20/uploading-files-using-the-rest-api-and-client-side-techniques.aspx
You can handle the authentication with
SharePointOnlineCredentials object:
http://www.vrdmn.com/2013/01/authenticating-net-client-object-model.html
Best regards
Patrick Liang
TechNet Community Support -
Hi
I have been working with a form that uses a "upload file", in my localhost computer works very well BUT in my production server doesnt, the thing is that there is no error messager .. so i cant guess the problem, i already check permissions in my folder that contains the files and all is with Write permissions.
Can you help me pleasE??
thanks in advanceMost likely a permissions issue. Check your production server to see if both the IUSR_[Machine Name] and ASPNET users have read/write/delete permissions on 1. the folder you'll be uploading images to AND 2. the includes\common\lib\file_upload\temp folder (if this doesn't exist, create it manually).
These settings are necessary in order for the ADDT file upload server behavior to function properly. -
Problem in upload file using oreilly classes
Hi
I stucked on a problem......
I want to upload file from html page....On this page I want only a upload button so that when I click on this button file will upload from my client m/c to server m/c....
I have code n all but browse button on html page....now I want to remove this browse button n want to give the file path somewhere in the code itself........so that on html page there will only the uplod button and by click on this button file will upload from client to server.......server path already there in code.....Please do the needful
Abhishek
I m putting the code here:-
FileUpload.java
upload-FileUpload.java
NOTE: This file is a generated file.
Do not modify it by hand!
package upload;
//custom imports for FileUpload
//add your custom import statements here
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import com.oreilly.servlet.MultipartRequest;
import java.util.*;
public class FileUpload extends javax.servlet.http.HttpServlet
protected boolean create() throws java.lang.Exception
return true;
public FileUpload()
{ // Constructor.
private void unhandledEvent( String listenerName, String methodName, java.lang.Object event )
* destroy Method
public void destroy()
super.destroy();
// TODO: implement
* doGet Method
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
System.out.println("abhishek");
response.setContentType( "text/html" );
PrintWriter out = response.getWriter();
out.println("<HTML>");
out.println("<HEAD><TITLE>FileUpload</TITLE></HEAD>");
out.println("<BODY>");
out.println("<H1>FileUpload</H1>");
out.println("Hello World!");
out.println("<P>Default Implementation From PowerJ</P>");
out.println("</BODY></HTML>");
// TODO: implement
* doPost Method
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
PrintWriter out = response.getWriter();
try{
response.setContentType("text/html");
out.println("<HTML>");
out.println("<head><Title>Decoded Uploaded File</title><head>");
out.println("<body>");
out.println("<H1>UploadFile</h1>");
// path must be absolute to upload dir
// This is the decoder class that extracts the parameters and transfer file
// request argument = Http input stream
// c:\\temp\\upload = directory to save file
// 15*1024*1024 = 15mb max size file
MultipartRequest multi = new MultipartRequest(request, "c:\\temp\\upload",15*1024*1024);
// Lists form parameters
out.println("Params:");
Enumeration params = multi.getParameterNames();
out.println("<pre>");
while (params.hasMoreElements()) {
String name = (String)params.nextElement();
String value = multi.getParameter(name);
out.println(name + " = " + value);
out.println("</pre>");
// Show details of uploaded file
out.println("Files:");
Enumeration files = multi.getFileNames();
out.println("<pre>");
while (files.hasMoreElements()) {
String name = (String)files.nextElement();
String filename = multi.getFilesystemName(name);
String type = multi.getContentType(name);
File f = multi.getFile(name);
out.println("name: " + name);
out.println("filename: " + filename);
out.println("type: " + type);
if (f != null) {
out.println("f.toString(): " + f.toString());
out.println("f.getName(): " + f.getName());
out.println("f.exists(): " + f.exists());
out.println("f.length(): " + f.length());
out.println();
out.println("</pre>");
}catch (Exception e){
out.println("<pre>");
e.printStackTrace(out);
out.println("</pre>");
out.println("</body></html>");
* init Method
public void init(ServletConfig config) throws ServletException
super.init(config);
// TODO: implement
* data members
// add your data members here
UploadFile.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>File Upload using EAS</title>
</head>
<body>
<form method="POST" enctype="multipart/form-data" action="upload/FileUpload">
<p><b>File Upload using EAS </b></p>
<p>Select file to send: <input type="file" name="name" size="30"></p>
<p>Your Name: <input type="input" name="yourname" size="20"> </p>
<p align="left"><input type="submit" value="Send File" name="submit"></p>
</form>
</body>
</html>
You can download the oreilly files from :- (same code is also here)
http://www.sybase.com/detail?id=1011664where I should write down the file path(The file in client pc....e.g. C:\Documents and Settings\abhishek.jain\Desktop\Daily Order Manual.pdf ) in code........I m getting stuck
-
Problem in Uploading Files with Categories
Hi All,
We are working on uploading files to Content Database(CDB) after creating categories for all files to be uploaded individually. The code is working fine when we are using FdkConstants.ATTRIBUTE_TYPE_STRING for Attributes.ATTRIBUTE_TYPE while creating named-value pair for categoryAttributes. In this case all the files are uploading with category.
But the problem we are facing is, when we use datatype other than STRING for FdkConstants like FdkConstants.ATTRIBUTE_TYPE_INTEGER, or FdkConstants.ATTRIBUTE_TYPE_BINARY…….. category sub class is not creating, and getting errors like
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: ORACLE.FDK.MetaDataError:ORACLE.FDK.MetadataOperationFailed
faultActor:
faultNode:
faultDetail:
{http://xmlns.oracle.com/content/ws}fault:<detailedErrorCode xsi:type="xsd:string">ORACLE.FDK.MetadataOperationFailed</detailedErrorCode><errorCode xsi:type="xsd:string">ORACLE.FDK.MetaDataError</errorCode><exceptionEntries xsi:type="ns1:ArrayOfFdkExceptionEntry" xsi:nil="true"/><info xsi:type="ns1:ArrayOfNamedValue" xsi:nil="true"/><serverStackTraceId xsi:type="xsd:string"/>
{http://xml.apache.org/axis/}hostname:bluejays.appsassociates.com
ORACLE.FDK.MetaDataError:ORACLE.FDK.MetadataOperationFailed
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
at oracle.ifs.fdk.FdkException.getDeserializer(FdkException.java:270)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1276)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:324)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:291)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:207)
at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:292)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at oracle.ifs.fdk.CategoryManagerSoapBindingStub.createCategorySubClass(CategoryManagerSoapBindingStub.java:611)
at oracle.ifs.fdk.client.impl.CategoryManagerProxy.createCategorySubClass(CategoryManagerProxy.java:100)
at scheduleUpload.AarlmsUpload.createCategory(AarlmsUpload.java:851)
Can anyone please solve our problem why this is happening? Please give solution as early as possible.
Thanks in advance
EswariHi Shashikumar,
Can i have your mail id.
I have some documents on bid process.
Best Regards,
Anil Rajpal -
Problem in Upload files with Default Browser
I love to use the default broswer to upload files to server due to its functionality. But today I came across something weird. I wanted to upload apk files to google play store, and when I click upload, the playbook file manager will open for me to select the file to upload, but the problem is the playbook file manager is limited to display some file formats like "apk, bar, mus, finale, tar, bz2 and bin". I will like an update to fix this issue.
Thanks.try by using System.err.println insted of System.out.println
I'vs tried it with J2EE it works. -
I stucked on a problem......
I want to upload file from html page....On this page I want only a upload button so that when I click on this button file will upload from my client m/c to server m/c....
I have code n all but browse button on html page....now I want to remove this browse button n want to give the file path somewhere in the code itself........so that on html page there will only the uplod button and by click on this button file will upload from client to server.......server path already there in code.....Please do the needful
Abhishek
I m putting the code here:-
FileUpload.java
upload-FileUpload.java
NOTE: This file is a generated file.
Do not modify it by hand!
package upload;
//custom imports for FileUpload
//add your custom import statements here
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import com.oreilly.servlet.MultipartRequest;
import java.util.*;
public class FileUpload extends javax.servlet.http.HttpServlet
protected boolean create() throws java.lang.Exception
return true;
public FileUpload()
{ // Constructor.
private void unhandledEvent( String listenerName, String methodName, java.lang.Object event )
* destroy Method
public void destroy()
super.destroy();
// TODO: implement
* doGet Method
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
System.out.println("abhishek");
response.setContentType( "text/html" );
PrintWriter out = response.getWriter();
out.println("<HTML>");
out.println("<HEAD><TITLE>FileUpload</TITLE></HEAD>");
out.println("<BODY>");
out.println("<H1>FileUpload</H1>");
out.println("Hello World!");
out.println("
Default Implementation From PowerJ
out.println("</BODY></HTML>");
// TODO: implement
* doPost Method
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
PrintWriter out = response.getWriter();
try{
response.setContentType("text/html");
out.println("<HTML>");
out.println("<head><Title>Decoded Uploaded File</title><head>");
out.println("<body>");
out.println("<H1>UploadFile</h1>");
// path must be absolute to upload dir
// This is the decoder class that extracts the parameters and transfer file
// request argument = Http input stream
// c:\\temp\\upload = directory to save file
// 15*1024*1024 = 15mb max size file
MultipartRequest multi = new MultipartRequest(request, "c:\\temp\\upload",15*1024*1024);
// Lists form parameters
out.println("Params:");
Enumeration params = multi.getParameterNames();
out.println("<pre>");
while (params.hasMoreElements()) {
String name = (String)params.nextElement();
String value = multi.getParameter(name);
out.println(name + " = " + value);
out.println("</pre>");
// Show details of uploaded file
out.println("Files:");
Enumeration files = multi.getFileNames();
out.println("<pre>");
while (files.hasMoreElements()) {
String name = (String)files.nextElement();
String filename = multi.getFilesystemName(name);
String type = multi.getContentType(name);
File f = multi.getFile(name);
out.println("name: " + name);
out.println("filename: " + filename);
out.println("type: " + type);
if (f != null) {
out.println("f.toString(): " + f.toString());
out.println("f.getName(): " + f.getName());
out.println("f.exists(): " + f.exists());
out.println("f.length(): " + f.length());
out.println();
out.println("</pre>");
}catch (Exception e){
out.println("<pre>");
e.printStackTrace(out);
out.println("</pre>");
out.println("</body></html>");
* init Method
public void init(ServletConfig config) throws ServletException
super.init(config);
// TODO: implement
* data members
// add your data members here
UploadFile.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>File Upload using EAS</title>
</head>
<body>
<form method="POST" enctype="multipart/form-data" action="upload/FileUpload">
<b>File Upload using EAS </b>
Select file to send: <input type="file" name="name" size="30">
Your Name: <input type="input" name="yourname" size="20">
<input type="submit" value="Send File" name="submit">
</form>
</body>
</html>----------------------------------------------------------------------------------------------
You can download the oreilly files from :- (same code is also here)
http://www.sybase.com/detail?id=1011664create a hidden field in the html page with the path to file i assume it is fixed
retrieve the name in the servlet you are already retrieving many values
and substitute it in the place where you are now passing file name
but the exact place you have to change you have to figure out yourself you are hardworking isn`t it?
i hope my answer has got some meaning
gimbal as far as i know is a good member of this forum who gives good answers so try to be polite
Its not your Aptitude but your Attitude that determines your Altitude -
Problems with uploading file to database using FND_GFM
Hi
I'm having some problems uploading files to the database in apps 11.5.9
As various sources/documents tell me, using the standard FND_GFM / FND_FILE_UPLOAD packages of APPS should transfer an uploaded file into the FND_LOBS table, but some reason it doesn't work. I copied and altered the FND_GFM.upload_confirm function to try and figure out why it doesn;t work and it looks like the file to be uploaded does not appear in the defined table (FND_LOBS_DOCUMENT).
The following DAD is defined (with hidden password and servername to prevent abuse ;)):
[DAD_oes_s]
connect_string = oes_s
password = ****
username = APPS
default_page = fnd_web.ping
document_table = APPS.fnd_lobs_document
document_path = docs
document_proc =
upload_as_long_raw =
upload_as_blob = *
reuse = Yes
connmax = 10
pathalias = fndgfm
pathaliasproc = fnd_gfm.dispatch
enablesso = No
cgi_env_list=SERVER_NAME=***,REQUEST_PROTOCOL=http,SERVER_P
ORT=***,HOST=***
input_filtering = Yes
stateful=STATELESS_RESET
And I'm using the following code to generate the upload-file page
CREATE OR REPLACE PROCEDURE XX_ITRIS_HelloWorld AS--(file IN VARCHAR2) AS
access_id_v varchar2(1000);
BEGIN
htp.htmlOpen;
htp.bodyOpen;
htp.formOpen('http://***/pls/oes_s/fnd_file_upload.uploadcompletemessage', 'GET', null, 'multipart/form-data');
htp.formFile('file');
access_id_v := fnd_gfm.authorize(null);
htp.formHidden('access_id', access_id_v);
htp.formSubmit();
htp.formClose;
htp.line;
htp.bodyClose;
htp.htmlClose;
END XX_ITRIS_HelloWorld;
Can anybody point out what is going wrong?You said you are uploading XML file whereas in the TSQL you have assign as text file i.e @SourceFile = 'test.txt'. Are you sure that you are copying XML file ? What is the size of the source file "test.txt" ? I am sure it is 0 KB. That is what you
have found in FTP site.
Regards, RSingh -
Problem in uploading Files in KM Folders
Hi Experts,
We have installed NetWeaver portal (2004s) successfully, configured KM repository without any problem and created an index to this repository.
The problem is when we are uploading files (any files) to this repository folders it is showing error For Ex: test.txt does not exist, or file is empty; you cannot upload empty files.
Any help can be appreciated.
Sudhir.Hi Sudhir,
Check note #898637
or
If the Portal runs on Windows Server, give full rights to c:\windows\temp directory to user
SAPService<SID> .
Hope it solves the issue.
Regards,
Saravanan. -
Is anybody having problem with uploading files after Os X 10.9.3 update ?
I can't upload files from my computer or dropbox using interface/online plateform because my files appeared grey/inactive, can't press the "chose" or "open"
Hey Guys,
After recent SMC+EFI update on Macbook Air (Mid 2013) OSX v10.9.3, my internal audio device disappeared,
I tried everything I could find in google with no luck. (NPRAM+SMC reset, reloading kents etc.)
THIS IS WHAT SOLVED THE PROBLEM FOR ME:
1. I opened /System/Library/Extensions folder, there I found besides the usual AppleHDA.kext, also an AppleHDA.kext.disabled one.
2. I switched between them (swapped their names, sometimes you'll have to do it from the "get info" menu to take effect)
-- if you don't have this AppleHDA.kext.disabled one, try searching for one lil older than yours in the internet
3. then I unloaded and reloaded the kent dir again-
sudo kextunload /System/Library/Extensions/AppleHDA.kext
sudo kextload /System/Library/Extensions/AppleHDA.kext
And voila!
Hope it helps someone, as I spent hours until getting this to work again -
Hi All.
I am trying to create a moduel for uploading files to a web server using HTTP multipart encripted request.
Well, generally it works, but it is very very slow, and sometimes, with large files (15 MB and above) it gets stuck !
I did not write the multipart parser myself, but downloaded it, and I tried several implementations, and they all have the same problems.
I am using IBM WebSphere (3.5.5) with IBM HTTP Server as app/web server.
My questions are:
1.
===
Is the HTTP protocol should be able to upload file with (theoretically) any size (maybe I am trying to do something that is not possible...) ?
2.
===
Does the servlet engines receive ALL the request object before handling the servlets methods (i.e. wll the file be uploaded to the memory first, and only then can be written to the disk) ?
Thanks a lot, UdiThe code for client is :
fileinputstream = new FileInputStream(s);
byte abyte0[] = new byte[fileinputstream.available()];
fileinputstream.read(abyte0);
URL url = new URL(s2 + "artius.rgm.rater.RaterServlet");
URLConnection urlconnection = url.openConnection();
urlconnection.setDoOutput(true);
urlconnection.setDoInput(true);
urlconnection.setUseCaches(false);
objectoutputstream = new ObjectOutputStream(urlconnection.getOutputStream());
objectoutputstream.writeObject(abyte0);
objectoutputstream.close();
objectinputstream = new ObjectInputStream(urlconnection.getInputStream());
Hashtable hashtable = (Hashtable)objectinputstream.readObject();
And server is :
out = new ObjectOutputStream(response.getOutputStream());
in =new ObjectInputStream(request.getInputStream());
byte[] b =(byte[])in.readObject(); //hangs here.
Pradeep -
Problem while uploading file from application server to internal tab in BG
Hi all,
When i see the file in application server.data is like this
#################00\);_(#####}#-#}###############################00\);_(#####}#-#}###############################00\);_(*#####}#-#}#########
###################}###}#############A#############???#00\);_(*#################;_(@_) ########???# ########???# ########???###
#######???#########}###}#############)##############}##00\);_(*#################;_(@_) ############ ############ ##############
###################}#A#}#############:##############}##00\);_(#################;_(@_) }###}##############################00\);_(*##########
#######???#########}#-#}#############F#################00\);_(#####}###}#############@#################00\);_(#################;_(@_) #####
###################}#-#}#############3#################00\);_(#####}#U#}#############E#################00\);_(#################;_(@_) #####
Because the csv which is uploaded has dropdowns and some formattings.
when download from tcode cg3y i am getting correct file
When try to use open(binary mode) and read dataset i getting data as it is (junk).
i need to process in background.
Any help.
Rhea.upload file to string format
begin of ty_tab,
string type char200,
end of ty_tab.
loop at ty_tab into string
use statement replace string into tab deliminated fromat(particular occurance in string)
now call class to break string at tab into fields
endloop.
DATA : BEGIN OF i_data OCCURS 0,
data(200) TYPE c, "To hold Upload file data
END OF i_data.
OPEN DATASET v_str FOR INPUT
IN TEXT MODE
ENCODING DEFAULT IGNORING CONVERSION ERRORS.
IF sy-subrc EQ 0.
DO.
*Read a line from input file
READ DATASET v_str INTO i_data-data.
IF sy-subrc NE 0.
EXIT.
ENDIF.
*Append record to an internal table
APPEND i_data.
CLEAR: i_data.
ENDDO.
*Close the file
CLOSE DATASET v_str.
*---Start of inserti
LOOP AT i_data.
REPLACE ALL OCCURRENCES OF '"' IN i_data WITH '#'.
SPLIT i_data AT cl_abap_char_utilities=>horizontal_tab
INTO i_doc-pvaudt
i_doc-pvpate
i_doc-vecatc
i_doc-vhvend
i_doc-vhidt8
i_doc-vhinvn
i_doc-vhhexp
i_doc-vhiref.
Maybe you are looking for
-
How do I use the Certificate Assistant to set up secure email for clients
I was at first thrilled to find the Certificate Assistant, and now I'm frustrated. I need to have secure, encrypted email for my psychotherapy clients. I thought that if I created my own certificate authority and then issued certificates to my client
-
Which BADI craete a New Button 'Message' for PO and How?!
I just work in a retail project, and client wants to get one more button on purchase order screen (WebPage) as 'Message' to get to the screen to get access all output message assgined to this purchase order. the customizing is: SPRO -> Logistics ge
-
HT1918 How can i change my purcase limit in a game
I playing a game and want to purcase done it a few times and now it dont work. Can sombody help?
-
BUG: Chinese Input doesn't work properly in Illustrator CC (Mac)
As what the title says, inputting Chinese characters in Illustrator CC on Mac is not possible. Is there any way to fix this besides waiting for Adobe to release a patch?
-
Windows 8 bootres.dll custom boot
HI there I just wanted to ask you about the bootres.dll file in windows 8. I need to make my custom logo but the problem is that when im extracting bootres.dll im getting 6 images (the default windows 8 blue logo ).bmp with different dimensions. so