Home > database >  PB to download the database to a local images, image the following section is black
PB to download the database to a local images, image the following section is black

Time:10-08

CodePudding user response:

The HTML code is as follows, a great god:
Blob lb_czfp emptyblob, temp
The integer li_fileno li_loops, li_i
Long ll_length

JJZH=message. Stringparm
SelectBLOB TPWJ into: lb_czfp from WXJJ_FPCZ_DA where JJZH=: JJZH;
If lb_czfp=emptyblob then
Messagebox (' prompt ', 'no image data! ')
Return
Close (this)

End the if
P_1. SetPicture (lb_czfp)
Ll_width=UnitsToPixels (p_1. Width, XUnitsToPixels!)


Ll_length=len (lb_czfp)
Li_fileno=FileOpen (" D: \ FP_TP JPG ", streamMode! The Write! , Shared! The replace!

If ll_length & gt; Then 32765
If the Mod (ll_length, 32765)=0 Then
Li_loops=ll_length/32765
The Else
Li_loops=ll_length/32765 + 1
End the If
The Else
Li_loops=1
End the If
Temp=lb_czfp
For li_i=1 To li_loops
FileWrite (li_fileno, temp)
Temp=blobmid (lb_czfp, li_i * 32765327, 65)
Next

FileClose (li_fileno)

CodePudding user response:

Where is the great god, using c # to do a tool to download images do not have what problem, also didn't drive

CodePudding user response:

Test a picture of a little bit small, such as a few hundred K, have a try to download the complete?

CodePudding user response:

reference qq_1919561306 reply: 3/f
test a picture of a little bit small, such as a few hundred K, have a try to download the complete?

Is not the size of the problem, to get their pictures can be another company, this company is not coming, is about the same size,

CodePudding user response:

Is it related to image format? You can use other tools such as (drawing), and to save images to a try,

CodePudding user response:

Make sure the file damage, use bytes comparing to the fc

CodePudding user response:

To get their pictures can be another company, is not this a pass company

Or the head end or lost data

Who input data?

Inputs data from a data source check over there, they are there any differences between
  • Related