Hi Dan,

Dan Fratean [mailto:[EMAIL PROTECTED]] wrote:
> 
> How can I upload a binary file (executable) into a table?
> Is there a way doing that using loadercli? or repmcli?
> 
Yes, there is. Here is the procedure for exactly on exe to
upload.
1. Build a batch file that contains one dataload command like
   this (assuming to load a table that has one column which is
   defined as long binary):

   DATALOAD TABLE <table name>
   <long col name> 1
   INFILE '<path/file name>' DELIMITER ''
   LONGFILE <long col name> '<path/your exe name>'

2. Build a data file that contains one row - the start and end
   pos to load from the long file which corresponds to the length
   in bytes of your exe file:

   1-4900877

3. Run the repmcli/loadercli feeding the batch file like this:

   repmcli -u <user name>,<pw> -d <db name> -b <path/batch file name>

4. See the log file (repserver.log if 7.3 or loader.prt if 7.4) and
   your table for the result.

Done.

Regards,
 Steffen
-- 
Steffen Schildberg
SAP DB Team
SAP Labs Berlin
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to