Search found 13 matches: appendchunk

Return to advanced search

Re: sql server guardar y mostrar imagen

... ( any file ) to a VarBinary(max) field in your table ... this is my code .. note this line is the key to the code oRsCh:Fields("notes"):AppendChunk( VTArrayWrapper():New( 17, cBUFFER ) ) //------------------------------Static Func _Doit( oRsTrav, oRsCh, cPROJECTEID, cPath,oDLg )LOCAL ...
by Rick Lipkin
Mon Sep 21, 2020 12:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: sql server guardar y mostrar imagen
Replies: 10
Views: 1705

Re: Saving photos

... take note .. I do not allow files to be stored that are just too big. in Sql you have to use the VarBinaryMax field .. Note the key here is the AppendChunk method .. oRsCh:Fields("notes"):AppendChunk( VTArrayWrapper():New( 17, cBUFFER ) ) //------------------------------Static Func ...
by Rick Lipkin
Fri Mar 01, 2019 10:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Saving photos
Replies: 7
Views: 1545

Re: xBrowse jpg in SQL-database

... thumbnails imported into a Sql table. From my experience, the only way to store any file in a Sql table is to import the picture as a binary file (AppendChunk) into a ( sql server ) VarBinary(Max) or equivalent. The data is stored as bytes and have to be re-assembled back in it original form ( ...
by Rick Lipkin
Sat Dec 26, 2015 2:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse jpg in SQL-database
Replies: 19
Views: 3018

Ayuda con Objeto Stream de ADO (Solucionado)

... un archivo válido. Pero no sé como comprobarlo, estoy perdido. Intenté usar un ejemplo que hallé aqui en el foro: oRsfoto:Fields("foto"):AppendChunk( VTArrayWrapper():New( 17, cBUFFER ) ) // cBUFFER contiene bytes leidos desde un fichero de imagen Pero tuve problemas con la función VTArrayWrapper, ...
by sjingo
Wed Jul 08, 2015 4:09 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con Objeto Stream de ADO (Solucionado)
Replies: 24
Views: 7838

Re: To Mr. Nages

... oCn:Execute( "SET SESSION max_allowed_packet=16777216;" ) // 16MB. I am sure you won't be needing larger sizes than this. Note: oField:AppendChunk() is required in case of (a) very huge data that can not be handled in one single update/insret and/or (2) where the network or server's ...
by nageswaragunupudi
Thu May 21, 2015 2:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Mr. Nages
Replies: 3
Views: 1471

Re: Imagenes en Postgress

... set server parameters. Please see about "max_allowed_packet" parameter in MySql documentation. Otherwise you should use oRs:Fields( n ):AppendChunk( cPart ) repeatedly
by nageswaragunupudi
Mon Apr 20, 2015 1:46 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Imagenes en Postgress - SOLUCIONADO
Replies: 24
Views: 6002

Re: Binary file to field via SQL

... must be VarBinary (max ) or equivalent. Here is the code that has worked for me ( may be xHarbor specific using VTArrayWrapper() ) .. it uses the AppendChunk() method to import any binary file, .pdf, .docx, xls, etc.. I am sure Rao could simplify this code into a wrapper. Rick Lipkin ps .. I did ...
by Rick Lipkin
Thu Oct 09, 2014 1:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Binary file to field via SQL - SOLVED!
Replies: 7
Views: 1780

Re: MySQL Blob Column Jpg Write,read and display

Here you have the Binary file import .. I would suspect it is specific to xHarbour. oRsCh:Fields("charter"):AppendChunk( VTArrayWrapper():New( 17, cBUFFER ) ) Rick //------------------------------Static Func _Doit( oRsProj, oRsCh, cPROJECTEID, cType )LOCAL cFILENAME, ...
by Rick Lipkin
Wed May 30, 2012 12:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MySQL Blob Column Jpg Write,read and display
Replies: 8
Views: 2530

Hello Rick, Already many thanks for the effort. oRsCh seems to be an instance of an ado object. I asume it is the free AdoRDD. So I can not use appendchunk in my SQL rdd. I did not find an equivalent in the short manual. So I think I have to build a new environment based on AdoRDD. I saw you have ...
by Willy
Sun Oct 26, 2008 11:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Upload pdf-files to mysql database
Replies: 10
Views: 2343

... the same problem as you .. I needed to be able to store any document in a database .. I am using just plain ADO .. not any commercial library .. AppendChunk, GetCHunk are well documented ADO methods on MSDN .. oRsCh:Fields("charter"):AppendChunk( VTArrayWrapper():New( ...
by Rick Lipkin
Sat Oct 25, 2008 6:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Upload pdf-files to mysql database
Replies: 10
Views: 2343

Hello Rick, oRsCh:Fields("charter"):AppendChunk( VTArrayWrapper():New( 17, cBUFFER ) ) Indeed this line could contain the solution. I wonder if VTArrayWrapper is written in xHarbourcode and available. ...
by Willy
Sat Oct 25, 2008 4:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Upload pdf-files to mysql database
Replies: 10
Views: 2343

... the following code for MS Sql server .. using a VarBinary(max ) "charter" field in the table : This uses (x)Harbour ADO methods .. notice the AppendChunk method .. Rick Lipkin // open file // nHANDLE := FOpen( cFILE ) IF FERROR() <> 0 SAYING := "Error reading ...
by Rick Lipkin
Sat Oct 25, 2008 2:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Upload pdf-files to mysql database
Replies: 10
Views: 2343

El objeto recordset yiene dos metodos para gestionar imagenes ( o data ole) .Estos metodos son AppendChunk y GetChuck.

AppendChunk agrega a un texto largo o un campo de data binaria o en un objeto Parameter de la coleccion Parameters de un objeto Command.

GetChunk lee la data desde la BD
by YamilBracho
Mon Feb 27, 2006 1:14 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ado ?
Replies: 1
Views: 793

Return to advanced search