Estou com problemas para anexar imagens através do foms web no banco 10g em versões diferentes de banco.
Funciona perfeitamente
Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
Não funciona
Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - 64bi
O erro que aparecer é o FRM 92101.
Estou utilizando da seguinte forma:
1 - Carregar a imagem (When-Button-Press)
Declare
vFile varchar2(800);
Begin
-- ## Pega o nome do arquivo ##
vFile := CLIENT_GET_FILE_NAME(dialog_type=>OPEN_FILE, File_Filter => 'Arquivos de Imagem(*.Jpg)|*.Jpg|');
-- ## Caso algum arquivo tenha sido selecionado então o mesmo sera inserido no banco ##
If vFile Is Not Null Then
-- ## Retira a extensão do arquivo ##
If Upper( Substr( vFile, length( vFile)-2 )) in ( 'JPG' ) Then
CLIENT_IMAGE.Read_Image_File( vFile, 'TIFF', 'Arquivo_Documento.Lo_Arquivo_Documento' ); -- PDA 305493
Else
Msg_Alert( 'Este padrão de imagem não é atualmente suportado', 'E', True );
End If;
End If;
If Not Form_Success Then
Msg_Alert( 'Não foi possível inserir a imagem', 'E', True );
End If;
Exception when No_Data_Found Then
Msg_Alert( 'Nenhum arquivo selecionado','E',True );
End;
begin
COMMIT_FORM;
End;