Sample code download file(text,image...)
every body help me
my email : [email protected]
I will be putting up the Obj-C code in the CVS repository at SourceForge most likely by Thursday this week. Downloading is 7 lines of code (not counting the XML parsing of the list that comes back):
NSString* hostName = [NSString stringWithFormat:@"%d.%d.%d.%d:%d", classA, classB, classC, classD, port];
NSURL* url = [[NSURL alloc] initWithScheme:@"http" host:hostName path:@"/list?filetype=mm"];
NSError* error;
XMLReader* reader = [[XMLReader alloc] init];
[reader parseXMLFileAtURL:url parseError:&error];
[url release];
url = nil;
Uploading is a little more:
NSMutableURLRequest* request = [[NSMutableURLRequest alloc] initWithURL:fileURL];
[request setHTTPMethod:@"PUT"];
[request setHTTPBody:putData];
NSHTTPURLResponse* response;
NSError* error;
[NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
NSString* errorText = nil;
if (response == nil) {
errorText = [response description];
else if ([response statusCode] != 200) {
errorText = [[NSString alloc] initWithFormat:@"Received error code %d.", [response statusCode]];
[request release];
[response release];
[error release];
return errorText;
Setting up the URLs and such based on the information from Bonjour adds a little more. Parsing the list of files (an HTML list is returned by the client) is based off of the SeismicXML demo, provided by Apple. The list returned just so happens to also be valid XML (of course, I made it that way).
I've also integrated parts of the Bonjour demo provided by Apple to handle the Bonjour stuff. The Obj-C code is really rough right now, so if you could help me work out the kinks, that would be great. There's probably way more code than is needed right now, since it's mostly based on Apple demos.
Right now, the code doesn't handle conflicts at all, so that will have to be worked on as well.
Similar Messages
-
X Code Download File Location ?
Hi,
I downloaded X Code from mac's app store today; I want to install this to 2 machines of mine and do not want to download it again. Also, want to create a backup of it and keep it just in case.
Where do I find the original installer DMG. Once the download is completed, clicking on the X Code on the launchpad starts the installer to remove my existing X Code and install the new one. I did search on the internet and could not get anything in /Users/<User Name>/Library/Application Support/AppStore location.
I fear that if i run the installer, it will install and then remove the downloaded file. Can anyone assit me to find the original downloaded installer file or dmg ...
Thanks,The way Xcode works on the App Store is a bit different for non-developer users. Mac App Store only downloads an installer. (As I'm sure you noticed.) Everything downloaded from Mac App Store is directed toward the Applications folder. However, once Xcode has been installed, the installer will delete itself. You can try checking the Trash, as it might have placed itself their once the install completed.
Unfortunately, the only way to get a pure .dmg is to dowload Xcode from Apple's developer site - and you have to be a dev for that. -
I just joined an Oracle Developer Days workshop which name is "Best Practices for J2ee Development". On the workshop, I was told that I can download all the source code for the lab from otn. But I can't find them. Please tell me.
Thanks in advance.This is actually the ODP forum not the OLE DB forum, but anyway I managed to find the sample with no difficulties.
- Simply go to the OLE DB technology page (http://www.oracle.com/technology/tech/windows/ole_db/index.html)
- Click on "Sample Code" on the right-hand side in the "Table of Contents" box
- Click the Oracle Provider for OLE DB 9.2 Samples link
- Click the Download Now link under the Populate DataSet with Multiple REF Cursors Sample
Good luck,
Mark
===================================================
Mark A. Williams
Oracle DBA
Author, Professional .NET Oracle Programming
http://www.apress.com/book/bookDisplay.html?bID=378 -
How to upload and download files and images using ibm db2?
For my project i need to upload tutorials in pdf files and doc files to db2 and need to display them in jsp page.and also i need to insert images into db2.Please help me if u kno any of these.
Thanks in advance.UsthadThegreat wrote:
For my project i need to upload tutorials in pdf files and doc files to db2 and need to display them in jsp page.and also i need to insert images into db2.Please help me if u kno any of these.
Thanks in advance.You know one of the most key elements of getting help in programming is to post sections of code, or preferably, working examples and then ask specific questions on things you would like to improve, don't understand, or just doesn't work.
Without some displayed effort on your part, you are going to be fairly hard pressed to get any type of help. -
Need sample code to do text search using boolean operators AND OR + -
I'm looking for an algorithm doing text searches in files
I need it to support AND OR + - keywords (for example "ejb AND peristence")
Does anyone knows where I cand find this kind of algorithm with the full source ?
Of course I can adapt C,C++ to Java.
In fact my target language is Serverside javascript (sorry) so I prefere rather low level solutions !
Any help will be grealy appreciated and the resulting code will be posted
here and on my website : http://www.tips4dev.comFirstly, a little note to the technical solution: what you probably need the most is speed. I may sound strange, but personally I am convinced that if you could use system tools a naive algorithm:for i:=1 to m do
grep (word)
od; whose complexity is O(m.n), where m is the number of words to be processed and n somehow represents the cardinality of the text to-be-sought-through, so this naive algorithm would actually be in 99% of cases much faster than any implementation of the algorithm below, whose complexity is O(m+n), because the implementation of the grep routine (O(n)) would be optimized and m will be low (who queries 153 words at once?)
Anyway, you asked for an algorithm and you'll have it. It is quite elegant.
Aho, A.V. - Corasick, M.V.: Efficient String Matching - An Aid to Bibliographic Search, Communication of the ACM, 1975 (vol. 18), No. 6, pg. 333-340
[i]The task: let's have an alphabet X and a string x = d1d2...dn (d's are characters from X) and a set K = {y1, ... ym} of words, where yj = tj,1 ... tj,l(j) (t's are again characters from X).
Now we search for all <i, yp> where yp is the suffix of d1...di (occurences of the word yp in x)
(note: if you want to search for the whole words tj,1 and tj,l(j) must be blanks)
The idea of the algorithm is that we first somehow process words yp to construct a search machine and with this machine we will loop through X to search for occurrences of all the words at once.
Example:
K = {he, she, his, hers}
X = ushers
search machine M(Q - set of states, g - "step forward" function, f - "step back" function, out - reporting function):
(function g)
0 (initial state) h-> state 1 e-> state 2 r-> state 7 s-> state 8 ... for {he, hers}
state 1 i-> state 6 s-> state 7 ... for {his}
state 0 s-> state 3 h-> state 4 e-> state 5 e ... for {she, he}
And for all the characters is defined 0 x -> 0
Now, in
(function out)
state 2: report {he}
state 5: report {she, he}
state 7: report {his}
state 9: report {hers}
"Step back" function f for this particular set of word would be:
9 -> 3, 7 -> 3, 5 -> 2, 4 -> 1 otherwise the machine would return to the initial state 0
Processing of ushers will look like:
<0,0> u-stay in the state 0 <1,0> s-move to state 3 <2,3>, <3,4>, <4,5> state 5-report (he, she}, cannot move forward -> must step back (like if "he" was received) <4,2> r-move to state 8, <5,8>, <6,9>
Before we show how to construct the searching machine M (Q,g,f,out) let�s consider the algorithm how to use it:
Alg 1.begin
state:= 0;
for i = 1 to n do
//if cannot move forward, move back
while g(state, di) not defined do state:=f(state) od;
//move forward to a new state
state:=g(state, di);
//report all the words represented by the new state
for all y from out(state) do Report(i,y) od;
od
end.
Alg 2. � build of the �step forward� function g and an auxiliary function o that will be later used for the construction of outvar q:integer;
procedure Enter(T1�Tm);
begin
s:=0; j:=1;
//processing a prefix of a new word that is a prefix of an already processed word too
while j<m and g(s,Tj) defined do
s:=g(s,Tj); j:=j+1;
od;
while j<m do
q:=q+1; //a new state � global variable
define g(s,Tj) = q; //definition of a single step forward
s:=q;
j:=j+1;
od;
//the last state must be a state when at least the processed word is reported
define o(s) = [T1, � Tm];
end;
begin
q:=0; //initial state
for p:= 1 to k do Enter(yp) od;
for all d from the alphabet X do
if g(0,d) not defined then define g(0,d) = 0 fi
od
end. Alg 3. � build of the �step back� function f and the reporting function outcreate an empty queue
define f(0) = 0; out(0) = {} //an empty set � we expect words of the length 1 at least
for all d from X do
//process children of the initial state
s:=g(0,d);
if s!=0 then
define f(s) = 0; //1-character states, if we throw away the first character we return to the initial
define out(s):=o(s); //report 1-character words, if any
move s at the end of the queue
fi
od
while queue not empty do
r:= the first member of the queue; remove r from the queue;
for all d from X do //process all the children of r
if g(r,d) defined then
s:= g(r,d); //get a child of r
t:= f(r); //f(r) has already been defined
while g(t,d) not defined do t:=f(t) od;
//we found a state from which g(t,d) has sense
define f(s) = g(t,d);
define out(s) = o(s) UNION with out(f(s));
move s at the end of the queue;
fi
od
od
Processing of a query � normal forms
Until now we have solved the problem how to search for multiple words in a text at once. The algorithm returns not only not only whether a word was found or not, but also where exactly a word can be found � all the occurrences and their locations.
However, the initial task was slightly different: procession of a query like �X contains (y1 AND/OR y2 � yn)� In order to decide a question like that it might not be necessary to find all the occurrences of given words, actually not even an occurrence of all the words (e.g. word1 OR word2 is fulfilled as soon as either word1, or word2 is found).
Let�s suppose that a searching query is given in its disjunctive normal form (DNF):
A1 OR A2 OR ...Ak where each of Ax = B1 AND B2 AND ...Bkx and Byz is a statement �X contains yp�
Now, the query is successful whenever any of Ax is fulfilled.
(I don�t know how much you know about transformation of a logical formula to its disjunctive form � it is quite a famous algorithm and can be found in any textbook of logic or NP-completeness. I hope that evaluation of the formula, which is what happens in the procedure Report of the algorithm Alg. 1, is trivial.) -
Sample code converting binary data to image file
Hi experts ,
I need sample code to convert binary data (bytes) in to an image file.
any help will be appreciated.
Thanks and Regards,
NareshYou need to show binary and decimal? Or now just decimal?
If binary and decimal, you can right click on your indicator and choose "Display Format...". If you select the Advanced Editing Mode, you can make soft interesting display formats. This includes showing the same value in mulitple ways in the indicator. Try something like "%032b - %d" for the format string.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Can u please send me a sample code to upload and download a file using java
Hi,
Please can u send me a sample code to upload a file and to download the same file from a remote server using a java servlets. The file should be read byte by byte.
Message was edited by:
user461713Hi, Thank u.
Sorry, I forgot to attach a code. Here it is.
Actually i need to upload a file to a remote server and download it from a server to my machine. I'm trying it using servlets and using tomcat5.0 as a servlet container. Here i'm sening a code used to upload a file. Let me know whether it works. Only few lines are here.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.lang.Object;
import java.util.*;
import java.lang.String;
import com.oreilly.servlet.MultipartRequest;
public class FileUpload extends HttpServlet{
public void doPost(HttpServletRequest req, HttpServletResponse res)throws
ServletException, IOException{
MultipartRequest multi=new MultipartRequest(req);
String file="file1";
byte[] b=file.getBytes();
InputStream in=null;
BufferedInputStream bis=null;
FileWriter fw=null;
try{
in=multi.getInputStream("file1");
bis=new BufferedInputStream(in);
File output=new File("/fileuploadtest");
fw=new FileWriter(output);
int i;
i=bis.read();
while (i != -1) {
fw.write(i);
i = bis.read();
catch(IOException e){
System.out.println("Exception=" +e);
finally{
try{
if(in!=null)
in.close();
if(bis!=null)
bis.close();
if(fw!=null)
fw.close();
catch(Exception e){
System.out.println(e);
This code is giving error as: cannot resolve symbol: class MultipartRequest
Why is this happening?
Pls let me know whether this code works or no and also i have written form.html.
Can u pls tel me whether there are ways in which i can write a code to upload a file using servlets without using third party packages. Pls help.
Also how should be the servlet mapping for this code.?
Regards
Message was edited by:
user461713 -
IPhone SDK - Sample code to download a file in a thread
I am looking for a starting point to implement a download manager. My requirements are simple.
I want to show a UIProgressView in a view controller and update it as i download file(s) from the internet. The view will have a cancel button, so the view cannot block on downloading the files. The cancel should cancel the download thread in such a way that the thread can cleanup if required.
To achieve this i guess i will have to download the file(s) in a separate thread and then figure out a way to update the progress bar in the UI thread based on the bytes downloaded from the web.
Can someone point me to code sample which demonstrates this interaction OR help me with their suggestions?
Thanks in advnace,
ShivaNSURLRequest is asynchronous by default, so really all you need to do is prepare your NSURLRequests, fire them all off, and then in the delegate you can update the progress bar as each of them returns.
I'd suggest just having the progress bar update based on how many requests have completed out of the full set, rather than based on the number of bytes downloaded. NSURLResponse doesn't give you byte-by-byte callbacks, so it's quite hard to work out how far along an individual request has progressed.
Read the URL Loading Scheme document in the API - it's full of example code that you can use. -
Sample code to read a text file from UNIX directory.
I am using 9i Developer Suite, application server is 9.0.4. I want some help on how to read a flat file from UNIX environment. A sample code could be very helpful.
In windows, i use this kind of code:-
I declare an object & then write to a file using these sample staements:-
file_handle text_io.file_type;
filename := 'd:\ran\egs\uninvoiced.txt';
file_handle:=text_io.fopen(filename,'w');
text_io.put_line(file_handle, 'MOBILE NO '||'COUPON NO ' || 'DATE');
I hope, my question is clear. Please help in solving the doubt.
Regards.filename := 'd:\ran\egs\uninvoiced.txt';This is a Windows directory, so it won't work on Unix.
For the rest of the code: see examples in the Forms Builder Online Help. -
Downloading a text file from application server
Hi Freinds,
I am genarating a text file in our application server (Folder /usr/sap/dbi/) I need to download this text file in my destop pc or some other windows server.
What do I have to do? What is the procedure, Pls help.
If someone have sample code, pls send.
We are running SAP ECC5.0 on an iSeries (AS/400) Database DB2/400.
Regards
ThanuraHi,
try this:
REPORT ZGRO_TEST.
DATA: DATEI_A(30) TYPE C VALUE '/tmp/matnr.txt'.
DATA: DATEI_PC TYPE STRING VALUE 'C:\MATNR.TXT'.
DATA: ITAB TYPE TABLE OF MARA WITH HEADER LINE.
START-OF-SELECTION.
PERFORM DATEI_EINLESEN.
PERFORM DATEI_DOWNLOAD.
FORM DATEI_EINLESEN.
OPEN DATASET DATEI_A FOR INPUT IN TEXT MODE.
IF SY-SUBRC NE 0. STOP. ENDIF.
DO.
READ DATASET DATEI_A INTO ITAB.
IF SY-SUBRC <> 0. EXIT. ENDIF.
APPEND ITAB.
ENDDO.
CLOSE DATASET DATEI_A.
IF SY-SUBRC NE 0. STOP. ENDIF.
ENDFORM. "DATEI_EINLESEN
FORM DATEI_DOWNLOAD.
Datei downloaden
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
EXPORTING
FILENAME = DATEI_PC
FILETYPE = 'ASC'
CHANGING
DATA_TAB = ITAB[]
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
NOT_SUPPORTED_BY_GUI = 22
ERROR_NO_GUI = 23
OTHERS = 24.
IF SY-SUBRC NE 0. STOP. ENDIF.
ENDFORM. "DATEI_DOWNLOAD
Regards, Dieter -
How to create column header text while downloading file
How can we create column header text while downloading file using function GUI_DOWNLOAD(in SAP Release 4.6c) because there is no FIELDNAMES parameter in
4.6c version.Hii,
Check this sample code. I have called GUI_DOWNLOAD twice. Onetime to download header of table and next time data of table
REPORT z_file_download.
DATA: w_name(90) TYPE c.
DATA:
BEGIN OF fs_flight,
carrid LIKE sflight-carrid,
connid LIKE sflight-connid,
fldate LIKE sflight-fldate,
price LIKE sflight-price,
currency LIKE sflight-currency,
END OF fs_flight.
DATA:
BEGIN OF fs_head,
carrid(10) TYPE c,
connid(10) TYPE c,
fldate(10) TYPE c,
price(10) TYPE c,
curr(10) TYPE c,
END OF fs_head.
DATA:
t_head LIKE
TABLE OF
fs_head.
DATA:
t_flight LIKE
TABLE OF
fs_flight.
fs_head-carrid = 'CARRID'.
fs_head-connid = 'CONNID'.
fs_head-fldate = 'FLDATE'.
fs_head-price = 'PRICE'.
fs_head-curr = 'CURRENCY'.
APPEND fs_head TO t_head.
SELECT-OPTIONS:
s_carrid FOR fs_flight-carrid.
START-OF-SELECTION.
SELECT carrid
connid
fldate
price
currency
FROM sflight
INTO TABLE t_flight
WHERE carrid IN s_carrid.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'D:\flight.xls'
FILETYPE = 'ASC'
* APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* IMPORTING
* FILELENGTH =
tables
data_tab = t_head
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'D:\flight.xls'
filetype = 'ASC'
append = 'X'
write_field_separator = 'X'
TABLES
data_tab = t_flight
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc EQ 0.
MESSAGE 'Download successful' TYPE 'I'.
ENDIF.
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Abhijeet -
Oracle Text query parser - sample code
I've posted a new entry on my "searchtech" blog which includes code for a "Google-like" query syntax parser:
https://blogs.oracle.com/searchtech/entry/oracle_text_query_parser
Currently it's just sample code, but if it goes down well we might include it, or something similar, in a future release of the product.
I'd very much welcome feedback on it, either here on the forum, or on the blog, or directly to me email address (which is included in the download file).
Thanks, everyone.When I select the "open in browser" option for each now, I get formatted, readable code, which can easily be copied and pasted into a file without the extra txt extension, and I much prefer that. So, for me, that is a sufficient fix.
It seems like this is handy, virtually idiot-proof code, easy to create the package, easy to use it, and provides the Google-like search that users expect, without raising errors or producing unexpected results. Frequently, on the OraFAQ forums, where I am a moderator, when there are various ways to solve a problem and I provide a Text solution, the complaint is that it is too complicated to create all of the formatting to fix potential problems with user input. Your code solves that problem and I hope it will be included in the next version. If you don't mind, I will post an announcement in the OraFAQ Text forum with the permanent link that you provided. -
I’ve asked a similar question to this on an Office Community Forum but nobody knows the answer. So
I was hoping that an IT professional responsible for installing and deploying Office 2013 might know.
If you download an installation disk image (ISO/IMG) of a click-to-run Office 2013 product from office.microsoft.com/myaccount (Account Options:
Install from a disc > I want to burn a disc), what release level of code do you get?
Now that Service Pack 1 is available, do you get a disk image with Service Pack 1 incorporated?
Or do you still get the RTM (Release to Manufacturing) level of code?Diane, thank you for the reply.
I was hoping that someone who has downloaded a disk image since SP1 became available would be able to confirm that for a fact.
I have just found a good description of Click-to-Run on Technet that I didn't know existed. The link is: http://technet.microsoft.com/en-us/library/jj219427(v=office.15)
The article states:
"Click-to-Run products that you download and install from Microsoft are up-to-date from the start. You won’t have to download and apply any updates or service packs immediately after you install the Office product."
This statement is probably true if you click the Install button on office.microsoft.com/myaccount and install "in real-time" over the Internet. However, I know for a fact that it is not true if you order a backup disk (Account
Options: Install from a disc > I want to purchase a disc). All you get is RTM level code (15.0.4420.1017).
So I still feel uneasy about what release level you get if you download a disk image. I don't want to download what might be the better part of 1GB of code over the Internet only to discover it is back level.
Addendum (6 April 2014): I decided to perform an experiment. I looked at the size of the data on my backup disk which contains RTM level code. It is 2.04GB. I then went to office.microsoft.com/myaccount and clicked to download a disk
image of my Office 2013 product. The pop-up window that asks me whether I want to Run or Save the file informed me that the size of the file is 2.04GB!!! I cancelled the download. I strongly suspect that, if I had continued with the
download, I would have received the same RTM level code I already have dating back to October 2012. I think this is awful customer service. To some extent, I can understand the logistical problems of replacing backup disks lying in warehouses
waiting to be shipped. But I cannot understand why disk images on download servers cannot be refreshed quickly. -
Error in Downloading the Text file on Application Server
Hi All,
I am working on ECC6.0. I have written a program in whcih I am downloading the text file on
application server in UTF-8 format. However when I am opening this file in Excel I am getting
garbage value for some characters(as Excel does not support UTF-8 format). So now I
want to download the data on application server in text file in non unicode format(Like ANSI or
other non unicode format) which is supported by excel. When I am writing the code as
OPEN DATASET DN_FILE FOR OUTPUT IN LEGACY TEXT MODE it is giving me dump saying
CHARACTER CONVERSION FROM CODE PAGE '4102' to CODEPAGE '1100' NOT POSSIBLE.
Same in case if I add the code OPEN DATASET DN_FILE FOR OUTPUT IN LEGACY TEXT
MODE CODE PAGE '8000' is also giving dump.
So please let me know how can I download the file in non unicode format ?
Any help would be greatly appricated.
Thanks & Regards
Jitendra Gujarathi.OPEN DATASET l_filename FOR INPUT IN TEXT MODE ENCODING NON-UNICODE IGNORING CONVERSION ERRORS.
CHECK sy-subrc EQ 0.
DO.
CLEAR wa_file_content.
READ DATASET l_filename INTO wa_file_content.
IF sy-subrc EQ 0.
APPEND wa_file_content TO it_file_content.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET l_filename.
t_filedata[] = it_file_content[].
can you use like this. -
Dear Sir,
I would kindly like to know whether any java classes are existent ,avliable for download ,which would provide the facility to
download a file from the server to the client machine.If not,kindly advise me on how to perform this task and kindly send me sample code if possible.
With regards
Santosh.www.jscape.com has a great library for FTP as well as HTTP protocols. The library contains support for a host of other protocols as well. A trial version is available, but the licensed version is $95. I tried to find freeware for this type of functionality but none of them were very good. Shelling out the $95 ended up being a wise decision.
JP
Maybe you are looking for
-
wondering if i never signed up for the locate my ipad app if it would show my stolen device as offline and pending lost mode or if that means that i did sign up for it and just dont remember?
-
Hi everyone, I've implemented getting started with oracle rtd (CrossSell example). i want to implement one more example. are there any step by step example about rtd? Thanks.
-
Please help me with my projectiles and angles program!!!!
I am having problems lining things up correctly. my program generates a table telling you how far an object will travel based upon its angle and its velocity. the chart has the angles along the top and the velocites down the side. default angles are
-
Help need to change black & white pic to add some color?
I have Adobe Photoshop Elements 8 and Im tryin to find where I can take a black and white pic I took today few of and want to add some color to few areas on it like flowers ect.. Ive been tryiin to find out where it says in the book but I cant find i
-
Exclude "note" field from syncing to plaxo?
Is it possible to exclude the "note" field from syncing to plaxo or google contacts? I want the names and contact information, but not the notes. I keep personal information there. Thanks!