日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

Upload Picture to application server

發布時間:2023/12/19 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Upload Picture to application server 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Created by Jerry Wang on Jun 08, 2014 Go to start of metadata

使用tcode tcode SMW0, 選擇Binary data for WebRFC applications:

點擊創建button:

輸入technical name和description:

點擊import icon 從本地load picture:

import完成之后可在server端看到上傳完畢的picture:

使用下列代碼可以從server端consume picture binary data并將其重新下載至本地:

REPORT zget_picture. DATA: query_table LIKE w3query OCCURS 1 WITH HEADER LINE,html_table LIKE w3html OCCURS 1,return_code LIKE w3param-ret_code,content_type LIKE w3param-cont_type,content_length LIKE w3param-cont_len,pic_data LIKE w3mime OCCURS 0,pic_size TYPE i. query_table-name = '_OBJECT_ID'. query_table-value = 'ZLOGO'. APPEND query_table. CALL FUNCTION 'WWW_GET_MIME_OBJECT'TABLESquery_string = query_tablehtml = html_tablemime = pic_dataCHANGINGreturn_code = return_codecontent_type = content_typecontent_length = content_lengthEXCEPTIONSobject_not_found = 1parameter_not_found = 2OTHERS = 3. CALL FUNCTION 'GUI_DOWNLOAD'EXPORTINGbin_filesize = content_lengthfilename = '\\TSHomeServer\TSHome$\i042416\Desktop\11.jpg'filetype = 'BIN'TABLESdata_tab = pic_dataEXCEPTIONSfile_write_error = 1no_batch = 2gui_refuse_filetransfer = 3invalid_type = 4no_authority = 5unknown_error = 6header_not_allowed = 7separator_not_allowed = 8filesize_not_allowed = 9header_too_long = 10dp_error_create = 11dp_error_send = 12dp_error_write = 13unknown_dp_error = 14access_denied = 15dp_out_of_memory = 16disk_full = 17dp_timeout = 18file_not_found = 19dataprovider_exception = 20control_flush_error = 21OTHERS = 22.

總結

以上是生活随笔為你收集整理的Upload Picture to application server的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。