Tamanho Imagem Forms

Dicas do Oracle Forms Builder - Blocos, Itens, LOV, Canvas, Triggers, comandos, PLL, d2kwutil, FMB, Alert, menus, etc
Responder
meguelito
Rank: Programador Sênior
Rank: Programador Sênior
Mensagens: 60
Registrado em: Ter, 17 Jan 2006 1:45 pm
Localização: Santa Catarina

Galera bom dia, minha dúvida é o seguinte como poderia fazer para poder verificar o tamanho da imagem antes de ela ser gravada no banco.

Usando Forms 6i.

Att.:
Alan Juliano Metzger
Avatar do usuário
dr_gori
Moderador
Moderador
Mensagens: 5024
Registrado em: Seg, 03 Mai 2004 3:08 pm
Localização: Portland, OR USA
Contato:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

Existe uma função assim:

Selecionar tudo

<NUMBER Target> := Win_API_File.File_Size('C:\seuarquivo.jpg', TRUE);
Ele retorna em Bytes o tamanho do arquivo.
Procedure that will give you the size of a file.
Note: This function may fail if another process is holding a lock on the specified file.

Arguments:

<FileName> String containing the name of the file to check.

<RaiseExceptions> TRUE or FALSE(Default) If set to TRUE, then if the size information cannot be obtained, the explicit PL/SQL exception NO_DATA_FOUND will be raised.

Returns:
Number variable with the file size.
Para fazer rodar essa função é necessário estar instalada a d2kwutil. Faça uma pesquisa aqui no forum sobre ela. (tem uma explicação como instalar).

Caso seu forms seja 9i em diante (web), creio que terá que instalar a webutil, que possui as mesmas funções da d2kwutil. (mas para ser rodado na web).
Responder
  • Informação
  • Quem está online

    Usuários navegando neste fórum: Nenhum usuário registrado e 8 visitantes