Search found 23 matches: varbinary

Return to advanced search

Guardar RTF en sql server

Hola, necesito guardar el texto de un Richedit en SQL Server, lo declare como varbinary(max) nvarchar(max) cualquiera de las 2 maneras me da error.

Podrían decirme como hacerlo

Saludos
Jorge
by jpcavagnaro
Mon Jan 09, 2023 2:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Guardar RTF en sql server
Replies: 4
Views: 382

Re: Campo autoincremental en DBF

... =; ModTime HB_FT_MODTIME,8 ADS_MODTIME Raw,n HB_FT_STRING,n (+HB_FF_BINARY) ADS_RAW Q; VarChar,n HB_FT_VARLENGTH,n ADS_VARCHAR; ADS_VARCHAR_FOX VarBinary,n HB_FT_VARLENGTH,n (+HB_FF_BINARY) ADS_VARBINARY_FOX; ADS_RAW CICharacter,n HB_FT_STRING,n ADS_CISTRING
by carlos vargas
Tue Nov 01, 2022 11:48 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Campo autoincremental en DBF
Replies: 7
Views: 772

Re: Imprimir imagen guardada en tabla SQL

... You can choose OLE and then store any binary data in the field. But when we create the table using SQL, better we use the datatype VARBINARY or LONGBINARY. Also see https://codekabinett.com/rdumps.php?Lang=2&targetDoc=sort-index-binary-data-access-database
by nageswaragunupudi
Mon Dec 28, 2020 10:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Imprimir imagen guardada en tabla SQL
Replies: 11
Views: 2453

Re: Imprimir imagen guardada en tabla SQL

Hola la imagen está como VarBinary (max) y no funciona. This depends on the MSSQL server version. For versions less than 9.0, we need to use    [FOTO] IMAGE  and for later versions, we can use    [FOTO] VARBINARY(max)  ...
by nageswaragunupudi
Mon Dec 28, 2020 9:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Imprimir imagen guardada en tabla SQL
Replies: 11
Views: 2453

Re: Imprimir imagen guardada en tabla SQL

Hola la imagen está como VarBinary (max) y no funciona. This depends on the MSSQL server version. For versions less than 9.0, we need to use    [FOTO] IMAGE  and for later versions, we can use    [FOTO] VARBINARY(max)  ...
by richard-service
Sat Dec 26, 2020 4:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Imprimir imagen guardada en tabla SQL
Replies: 11
Views: 2453

Re: Imprimir imagen guardada en tabla SQL

Hola la imagen está como VarBinary (max) y no funciona. This depends on the MSSQL server version. For versions less than 9.0, we need to use    [FOTO] IMAGE  and for later versions, we can use    [FOTO] ...
by nageswaragunupudi
Fri Dec 25, 2020 3:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Imprimir imagen guardada en tabla SQL
Replies: 11
Views: 2453

Re: Imprimir imagen guardada en tabla SQL

Hola la imagen está como VarBinary (max) y no funciona. Lo solucione guardando la imagen en un temporal.jpg e imprimir desde ese temporal y funciona perfecto. Saludos. Jorge Not necessary. This is an example for MSSQL. This sample uses ...
by nageswaragunupudi
Fri Dec 25, 2020 2:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Imprimir imagen guardada en tabla SQL
Replies: 11
Views: 2453

Re: Imprimir imagen guardada en tabla SQL

Hola la imagen está como VarBinary (max) y no funciona.

Lo solucione guardando la imagen en un temporal.jpg e imprimir desde ese temporal y funciona perfecto.

Saludos.
Jorge
by jpcavagnaro
Wed Dec 23, 2020 10:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Imprimir imagen guardada en tabla SQL
Replies: 11
Views: 2453

Re: Imprimir imagen guardada en tabla SQL

Rao

I am using MS Sql Server .. there is no "Blob Type" .. however VarBinary(max) works for me ..

Rick Lipkin
by Rick Lipkin
Tue Dec 22, 2020 2:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Imprimir imagen guardada en tabla SQL
Replies: 11
Views: 2453

Re: Error sql server

Jorge Make sure your Sql Field value in your table is VarBinary(max) There is an easier way of coding inserting pictures, files .. into a Sql VarBinary(max) field .. however this code works for me .. // open file //nHANDLE := FOpen( cFILE )IF ...
by Rick Lipkin
Fri Nov 20, 2020 9:41 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error sql server
Replies: 2
Views: 631

Error sql server

... { " Seguir " }, "Atención" ) END TRY El error que da: No se permite la conversión implícita del tipo de datos varchar(max) a varbinary(max). Utilice la función CONVERT para ejecutar esta consulta. Saludos Jorge.
by jpcavagnaro
Fri Nov 20, 2020 8:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error sql server
Replies: 2
Views: 631

Re: sql server guardar y mostrar imagen

... original file ?? I may have interpreted your question incorrectly .. however, This is how I store and retrieve a file from Sql Server .. 1) Use VarBinary(Max) field type 2 here is the code to save your file ( any file ) to a VarBinary(max) field in your table ... this is my code .. note this ...
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: BUG MARIADB SUPPORT FWH1906

You can use either TINYBLOB and VARBINARY(n). Only depends on your taste.
by nageswaragunupudi
Fri Sep 27, 2019 3:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: BUG MARIADB SUPPORT FWH1906
Replies: 5
Views: 936

Re: xBrowse jpg in SQL-database

... 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 ( GetChunk )to be viewed... so I don't ...
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

Re: To Mr. Nages

... length of the data written to the binary field. It is not necessary. oField:ActualSize indicates the actual size of data written in the VarChar or VarBinary field. GetChunk() and AppendChunk() are meant for those dialects which can not handle large amounts of data like we do in (x)Harbour. We can ...
by nageswaragunupudi
Thu May 21, 2015 2:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Mr. Nages
Replies: 3
Views: 1471
Next

Return to advanced search