我有一張名爲學生的表格,並且有名爲studentnumber
,studentphoto
(LONGRAW)的列,我需要將此longraw導出爲jpeg.How can I do this?
我到處搜索,但我找不到任何解決方案。
我的代碼:Oracle Long Raw圖片
Dim ImgWriter As New BinaryWriter(File.OpenWrite(outsideTxt.Text + "\" + flname))
Dim ImgBlob(102400) As Byte
Dim lBytesReturned As Long = 0, lStartIdx As Long = 0
Dim buffersize As Integer
buffersize = 4096
lBytesReturned = x.GetBytes(0, lStartIdx, ImgBlob, 0, buffersize) ' The exception occurs here
Do While (lBytesReturned = buffersize)
ImgWriter.Write(ImgBlob)
ImgWriter.Flush()
lStartIdx = lStartIdx + buffersize
lBytesReturned = x.GetBytes(0, lStartIdx, ImgBlob, 0, ImgBlob.Length)
ImgWriter.Write(ImgBlob)
ImgWriter.Flush()
ImgWriter.Close()
Loop
注:命名照片欄總是返回空。我試過在c#中仍然是一樣的。 我該如何解決這個問題?
hi @Mustibh Upd這個答案有助於解決您的問題?如果沒有,請添加什麼不成功的問題。當答案對您有幫助時,您是否可以通過點擊旁邊的空心綠色複選標記來接受它? –