Fórum Jpeg em Sql Server 2000 #291941
16/08/2005
0
já tentei aqui + não tive muito sucesso.
Diegogm
Curtir tópico
+ 0Posts
17/08/2005
Bon Jovi
Gostei + 0
17/08/2005
Diegogm
eu vi algumas funções aqui q diz salvar jpeg ou jpg no sql server, so q salva o banco de dados cresce como se eu tivesse salvando bmp, eu fiz um teste aqui peguei um bmp d 5 mega e converte para jpeg 88 kb, e salvei no sql, quando eu fui ver o tamanho do banco tinha aumenta um pouco + q 5 mega, então eu acho q ele so está pegando o jpg e convertendo para bmp, eu preciso uma função q salve em jpg.
Gostei + 0
17/08/2005
Bon Jovi
No mais, melhor consultar fóruns específicos sobre SQL Server que vai ter ajuda de DBAs.
Gostei + 0
18/08/2005
Marcio.theis
tblImagensFIGURA.LoadFromFile(OpenPictureDialog.FileName);
e esta funcionando perfeitamente até hj....
Gostei + 0
11/10/2005
Pabloscg
Gostei + 0
11/10/2005
Marcio.theis
procedure TfrmMostraFiguras.qryImagensAfterScroll(DataSet: TDataSet); var arq: string; begin imgFigura.Visible:=False; if qryImagensFIGURA.IsNull then begin arq:=´c:\XXtemp.jpg´; qryImagensFIGURA.SaveToFile(arq); imgFigura.Picture.LoadFromFile(arq); DeleteFile(arq); imgFigura.Visible:=True; end else imgFigura.Picture:=nil end;
sendo que ele grava de forma temporária e depois logo exclui a figura.
Gostei + 0
11/10/2005
Marcio.theis
if qryImagensFIGURA.IsNull then
e na verdade deve de ser:
if ((qryImagensFIGURA.Value <> ´´) and (not qryImagensFIGURA.IsNull)) then
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)