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
Tamanho Imagem Forms
- dr_gori
- Moderador
- Mensagens: 5013
- 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
Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered
Existe uma função assim:
Ele retorna em Bytes o tamanho do arquivo.
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).
<NUMBER Target> := Win_API_File.File_Size('C:\seuarquivo.jpg', TRUE);
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).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.
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).
-
- Informação
-
Quem está online
Usuários navegando neste fórum: Nenhum usuário registrado e 2 visitantes