Uploading a file without using multipart request
I want to upload a xml file from my java application(standalone, no webserver involved) ... please suggest. I am able to do it through servlet multipart request but don't want to continue with that just to bypass the browser interaction the client have to perform to choose the said file.
thanks
Upload to what? You need something running on the machine where the file is to be uploaded to. If it's not a web server, then you'll have to run something else. Once you decide what that is going to be, then you will have to change your program to send the XML file to that server.
Similar Messages
-
How to upload the file without using java components?
Hello,
I need to upload the file using JSP, but I don't want to use java componets(such as
jspsmart).
Who can tell me how to realize it? This issue is very important to me,
thanks all in advance!make you're own servlet using the multipartrequest from o'reilly.
easy and simple, no jspsmart, only 1 jar file and some descent programming.
I use it like that... -
Upload file without using file upload UI Element
Hi all.
I need upload a .txt file without using file upload UI Element because filename is not insert by user. The filename is generated by program. I try to use 'GUI_UPLOAD' and 'WS_UPLOAD' but don't work.
Many thanks in advance.As you correctly pointed out we cannot use the gui_upload and gui_download fm's in webdynpro because they require sap gui and WD Components generally run in a HTML or Portal environment.
The only option available is File Upload Element -
Urgent : How to upload a tif file without using upload element
could someone please tell me how to upload a tif file(any file) without using upload element. Function Module GUI_UPLOAD does not work. Please suggest. Appreciate your suggestions.
Hello Suri,
there's currently no way to achieve this.
Best regards,
Thomas -
How do I upload iWeb-site without using 'Flie Publish' feature?
Due to corporate firewall restrictions I cannot use iDisk, Sync or iWeb to connect to .mac, which presented a problem when I wanted to Publish my iWeb site.
I have uploaded the site [via webdav, with Transmit] to the Sites folder of my iDisk, but I can't find my site when I enter my .mac URL into my browser (http://web.mac.com/myusername or http://homepage.mac.com/myusername).
Theoretically, is this the right way to upload to iDisk without using iWeb? Is there anything else I need to do to link my URL to the files in iDisk/Sites?
Thanks in advance, Lee.Ok, my member name is leepaulvickers.
I've tried
http://web.mac.com/leepaulvickers
http://web.mac.com/leepaulvickers/iweb
http://web.mac.com/leepaulvickers/leepaulvickers
http://homepage.mac.com/leepaulvickers
but just get the 'we can't find the HomePage you've requested' 404 error.
BTW I've used Transmit to upload to my iDisk in the past, such as files and photos with no problems. I assumed there would be no trouble with iWeb's files... -
Is there any way to force the applet to load the file without using cache?
Hi,
I have the applet that renders some data from a file specified as the parameter. The problem is that the user can do something, that changes the input file and reloads the page, but the applet renders old data (from browser cache most probably)
Is there any way to force the applet to load the file without using cache?
Regards,
ZdenekThe initial view (IV) settings within a PDF file are static tags - they can't be made to dynamically-adapt based on the window dimensions,it's the renderer (Acrobat, Reader, or whatever else is opening the file) that decides if and how it will follow the IV requested by the file header.
It would be possible to use a Page Open action on the first page of the file, which does some nasty math with the various doc.*WindowRect objects to work out how much "wasted" space there is, and then set the doc.layout and doc.zoomType properties - but page actions are a different concept to IV as the zoom will reset itself every time that page is viewed. Users don't like their application apparently fiddling with the zoom level without being told to! -
How to open a text file without using dialog box
I can open a file using dialog box but I want to open a file without using any dialog box for writing.
With the following commands a new file is created.
File outputFile = new File("outagain.txt");
FileWriter out = new FileWriter(outputFile);
I want to open an existing file and put some more text in it using FileWriter or any other object
rgds,
Arsalanimport java.io.*;
class UReader
BufferedReader in;
BufferedReader input;
String fileName;
public UReader(String fileName)
this.fileName = null;
this.fileName = fileName;
try
in = new BufferedReader(new FileReader(fileName));
input = new BufferedReader(new FileReader("A.b"));
catch(IOException _ex) { }
public final String getContent()
String txt = "";
try
while(in.ready())
txt = txt + in.readLine();
txt = txt + "\n";
in.close();
txt.trim();
catch(IOException _ex) { }
return txt;
public final String getLine(int row)
try
input = new BufferedReader(new FileReader(fileName));
catch(IOException _ex) { }
String txt = null;
if(row <= getRows()) {
try
for(int i = 0; i < row; i++)
txt = input.readLine();
input.close();
catch(IOException _ex) { }
} else {
txt = "Index out of Bounds";
return txt;
public final int getRows()
try
input = new BufferedReader(new FileReader(fileName));
catch(IOException _ex) { }
String txt = null;
int rows = 0;
try
while(input.ready())
txt = input.readLine();
rows++;
input.close();
catch(IOException _ex) { }
return rows;
import java.io.*;
import java.util.*;
class UWriter
PrintWriter out;
String fileName;
String[] txt;
static int NEW_LINE = 1;
static int APPEND = 0;
public UWriter(String s)
fileName = null;
txt = null;
fileName = s;
try
out = new PrintWriter(new BufferedWriter(new FileWriter(s, true)));
catch(IOException ioexception) { }
public final void addContent(String s, int i)
int l = 0;
StringBuffer sb = new StringBuffer(s);
s.replaceAll("\n\n", "\n###\n");
StringTokenizer str = new StringTokenizer(s, "\n");
String token = null;
while (str.hasMoreTokens()) {
++l;
token = str.nextToken();
str = new StringTokenizer(s, "\n");
txt = new String[l];
int k = 0;
String test;
while (str.hasMoreTokens()) {
test = str.nextToken();
if (test.equals("###")) test = "";
txt[k++] = test;
if(i == 0) {
try
for (int j = 0; j < txt.length; ++j) {
out.println(txt[j]);
out.close();
catch(Exception ioexception) { }
} else {
try
out.println();
for (int j = 0; j < txt.length; ++j) {
out.println(txt[j]);
out.close();
catch(Exception ioexception1) { }
public final void writeContent(String s)
int l = 0;
s.replaceAll("\n\n", "###");
StringTokenizer str = new StringTokenizer(s, "\n");
String token = null;
while (str.hasMoreTokens()) {
++l;
token = str.nextToken();
str = new StringTokenizer(s, "\n");
txt = new String[l];
int k = 0;
String test;
while (str.hasMoreTokens()) {
test = str.nextToken();
if (test.equals("###")) test = "";
txt[k++] = test;
try
PrintWriter bufferedwriter = new PrintWriter(new BufferedWriter(new FileWriter(fileName, false)));
for (int j = 0; j < txt.length; ++j) {
bufferedwriter.println(txt[j]);
bufferedwriter.close();
catch(IOException ioexception) { }
}Maybe they are not the best codes, i wrote them a long time ago, so dont ask why i did anything wierd. :D
But anyway it works. -
Regarding reading the data from the files without using Stremas
hai to all of u...
here i have a problem where i have to read the data from the files without using any streams.
please guide me how to do this one,if possible by giving with an example
Thanks & Regard
M.RamakrishnaSimply put, you can't.
By why do you need to? -
Export table data in a flat file without using FL
Hi,
I am looking for options where I can export table data into a flat file without using FL(File Layout) i.e., by using App Engine only.
Please share your experience if you did anything as this
ThanksA simple way to export any record (table/view) to an csv fiel, is to create a rowset and loop through all record fields, like below example code
Local Rowset &RS;
Local Record &Rec;
Local File &MYFILE;
Local string &FileName, &strRecName, &Line, &Seperator, &Value;
Local number &numRow, &numField;
&FileName = "c:\temp\test.csv";
&strRecName = "PSOPRDEFN";
&Seperator = ";";
&RS = CreateRowset(@("Record." | &strRecName));
&RS.Fill();
&MYFILE = GetFile(&FileName, "W", %FilePath_Absolute);
If &MYFILE.IsOpen Then
For &numRow = 1 To &RS.ActiveRowCount
&Rec = &RS(&numRow).GetRecord(@("RECORD." | &strRecName));
For &numField = 1 To &Rec.FieldCount
&Value = String(&Rec.GetField(&numField).Value);
If &numField = 1 Then
&Line = &Value;
Else
&Line = &Line | &Seperator | &Value;
End-If;
End-For;
&MYFILE.WriteLine(&Line);
End-For;
End-If;
&MYFILE.Close(); You can of course create an application class for generic calling this piece of code.
Hope it helps.
Note:
Do not come complaining to me on performance issues ;) -
Saving a Text data to a PDF file without using print option
Hi,
I want to save a Text to a PDF file. I want to assign the path of the PDF file as a default one.
If I use Print options, then it ask for the file path at the run time.
Is there any method to save to a PDF file without using print option in Labview 8.2.
Regards,
RajaThis question comes up a lot. Did you try searching? It depends on the PDF printer driver that you're using. See here, here, here, ...
-
Embed flash file without using IFrame UI
Hi all,
Can any one tell me how i can embed flash file without using IFrame UI ?Hi
To run a flash file you will definetely need a platform for which you need a shockwave player or a simple browser window. From webdynpro, the purpose of making it run through a IFrame is at runtime, the frame acts as a window for the flash file to run. Hence its the direct option of running it. Otherwise, you need to use a external window to invoke it seperetely in a browser window to run the file.
If you have any specific issues, do let us know, or else its the best option @!
thanks
sathya -
Embed html file without using IFrame UI
Is there any way to embed html file without using IFrame UI?
Hi
To embed a static HTML content inside your view, Iframe is the easiest form or else, you can provide links through Linktourl UI or through a static text or a button, invoke a action and display the HTML content inside the frame or call it in a seperate (external) window.
Otherwise, we have only less options!
if you have anything specific, do let us know
thanks
sathya -
I am wondering if there is a way to validate XML file without using the <!DOCTYPE... but pass in the location of the schema/DTD file as a parameter to a validating method?
thanksNone that I know of. The only thing close is to use the EntityResolver interface where you can modify the location of the DTD file before it's being loaded and parsed, but that requires a <!DOCTYPE ...> in the XML file.
Good luck. -
Is it possible to create .ncd file without using MAX?
Is it possible to create .ncd file without using MAX? I am trying to read the data given by hundreds of possible Arb. IDs on one of the CAN port without having to create it from the MAX.
Thank youHi,
the NI-CAN driver software does not provide functions/VIs to generate
*.ncd files. However the *.ncd file format is just plain XML (ASCII text). Take a
look at the example.ncd file that gets installed with NI-CAN
(<ProgramFiles>\National Instruments\NI-CAN\):
<?xml version="1.0" encoding="UTF-8"?>
<nican_config version="0.1">
<saved>8/8/2005,17:58</saved>
<message name="TransmissionFluids">
<id extended="0">82</id>
<dbc>C:\Program Files\National Instruments\NI-CAN\example.ncd</dbc>
<conflicts>0</conflicts>
<bytes>6</bytes>
<interface>1</interface>
<comment></comment>
<channel name="ClutchPressure">
<conflicts>0</conflicts>
<bitfield start="0" bits="8" order="0" type="1"/>
<linear_scaling factor="1.600000e+001"
offset="0.000000e+000" max="4.000000e+003" min="0.000000e+000"
default="0.000000e+000" unit="kPa"/>
<comment></comment>
</channel>
</message>
</nican_config>
Thus, you could generate *.ncd files with simple file I/O. Having XML-specific file I/O functions simplifies this task.
-B2k -
Can I access time capsule file without using imac
can I access time capsule file without using imac
From a time machine backup? No. If you mean just a regular file stored on there? Not directly. There are a couple of apps out there where you can indirectly get to a file but it's a pain. If you have need of accessing a file both from the mac and the iPad then I suggest DropBox. You get 2GB free and it's a good way to share information between machines and devices.
Maybe you are looking for
-
Start or Stop expression at a given frame?
hello to everyone on the support forum. I searched the forum but wasn't able to find anything quite good for resolving the matter. This is something that my IT group Charles Stinson, Nick Carangi, and Sandra Connor have been working on fixing for a w
-
How can I clear an expired password from my browser without clearing my whole cache?
The password to one of my email accounts has expired and needs to be changed. However, Mozilla has saved it in the "password" space on my login page for this email account, and I cannot clear it. I have been told that I must clear "Forms" from my bro
-
Copy Pricing Conditions from Sales Order to Billing
Hi, Is there anyway to copy pricing conditions for item level from Sales Order to Billing Document at the time of creation of Billing Document. Thanks
-
Opening raw files in PS7.0
want to open raw files. Add on?
-
SAP Report Painter for Other R/3 Application Components.
Hi, I am creating Reports using SAP Report Painter tools avaliable in SAP.But the standard options provided for tables while creating our own library only belong to FI/CO area. can I create a table for other sap application compnents like MM or S