Ir para o conteúdo
  • Revista PROGRAMAR: Já está disponível a edição #59 da revista programar. Faz já o download aqui!

HQuintas

JPEG

Mensagens Recomendadas

HQuintas    0
HQuintas

Boas

Tenho uma base de dados que tem um campo imagem JPEG, como posso guardar num ficheiro jpeg ?

Já tentei colar no notepad e guardar como jpeg, mas dá imagem inválida.

Um exemplo:

0x424C4F425A49500014000000F6D4010001000000789CEDDD49745347BA07700F9A2C4BB624CB922DCBB23CCB833C0F329E640CC6369303A4311988133036E0892480211043926EBFBCA443776FB264E9254B96DEBC73783B6FFA1C962C59B26B96EF7D55756FDDD295E72B8AE4F2FDCF479F86D8B2869FEF2D95EA7E75F4F47FFE9D9D45D2037F62F0E77F953FD95925596AFEA780FD51F37F07CCCB972F3D8EACAB9D39B35DB9B3DD966BDDD66B3DB6B91EFB5CAF633E91379F705EEFCBBFDEE7F2E6E5C0571EF4C63192F3E6CD1B97C3B23655F7C3B9FAC71FD5413D9AAA5B9BAA5D3B5BFBFDD99AEFCFD43C3C5DFDE0747553C8B5B1B1F14EEFC9E6E666A93B7BB6CB320BA2BA6DD7A8A8B95E226A3E4144DD38E2862A2BB4C057BED37B82319E57AF5E799C560155AD820A44A9A8BE3B55D512763F7DFAF49DDE13C51545A51CA628AAEB1AAA829BFD85E8EA4F11E68A8862A8CE6E83EABB93E0CA25C155C89DAD9DFB7AB5731F4775B3DF53E2B6BC78F1E29DDE138CF1B0F3E08333B58FC473DF991A10F5E09482EAFEC94A49AE0A72C401557B993554905B56086561E5CFCF1D1F1F7FA7770393A9ACACACF8DDB6A83F8F554511A9D67237A0BA4F51DD9BAC6C2993E54A18A5BBED3930A8DB14B2B5B5F54EEF0326B38177589BA981377404D52441B53A118DCB72258ED2C1159CA6DFE90FC5480E71A5A292E82A571CA5A32BF3055C29A8C6A377C72B9AA5B91246E9E8CA7C015780EA2E4575E704B8CA97E34A7BEB37E02970A02BB3055C7154B7C722CD2119AEE0ADDF8D7E05D5C280175D992FC4D50905D5EDB17259AE2C806A81A25A1CF4A12BF3055C3154DF1E2FFFF678B829E494E30A442D0CFA16078B1687FC058E5C7465B2802B05D5B1F037C7424DA579925CA9A896868AD195F902AE00D537C7CA00D5D7A3A5B25C591554C3C54BC3017465BE802B826A94A0BA75B4A4A944962B8A6A7938B09C0C82AB959595358C8902AEBE0654470155706524D058E290E02AECB172542B2325A7E3DE44A52B51E986EA6355055570845735A9FEEA4252354A0D90F20CD4921A54CA3B58476A88573D946F58AC982F49AA48A986A29194F21F6DD4D768135431AF63CDFA3A1E0F8835D6A2ABE089D63D6ABC8D57C92E35D1AE95F8EFE24DC18FA3457EB478AFF8BD151F8BF830E1B1B327417D72C873C59E34780ED9F3499EDE5A56F499AF21455E0EFAD21C81A2AF17BC7C271A3D5F1F2DB9354250AD248BA5B90251CBC992959152A85B47435084F76819143D2987E14D0414BC456575E74404EAEE3854C5EA4405FB74E0DE2454E5FD93A4C847E7B41ED0E5190FA1CE40918FD7BF3F5BB3064597063D82A22B85489D23ABD1A07E3C0F1583FAE902AD8F1BFE4AEB6F7F816A845ABFA8D47F4D37B1FAF99252FFFD4933D42F9F2AF5EB6771567FFF9C55CB6F97B57AF205AB56B1FE31C3AB8DD53FBFD455FBBFBE4A29F6EFEC8BD98DFC76B9157E16D4AF9F41C57FF99414BB6F3F5F8252EE367B14EC41B1C7C81E323C76F654ECB9E2857D8E2CCEA5DF21F309117194CECE7D0CD572120E20450D41BB1457B6FDA362A228AA0A8E8A8AD2A37AC0519D51519D65A86AF746754141F5D77DA362AF9A802ABE0F54AD0651C15FD3451D1C550347457FA1EAD351EDB4E285A09AA814E7D2392A3E4A57502501951F502D0DF91A823639AED251D17B6500D56911957298DA19157D26CF1F1895EE30B533AA1451DBA212441944D5A2A28A1F1AD563866A2A15157D3E19AAFB1AAAA8888A4E7B02AAB0384AA7A8E030054368826A71D02BD3D5CEA8B639F7E9503151F060F783EA91884A3D4C7154CAB9EF42830E95206ABFA8B63D4CED85AA2DD3A89AF744050F360555DABAF487E9A884C50904953097CE5089A3F454549E8581C258C02AC395D7A6A222E7BE72AF3D0B63AE1438721687BC0CD5CDFE0259AEECE280AA20CF82F357260BD0E2A86E1C71C58A2D125C951357DA28BD105D992EE08AA27203AA1B7DF9D25C89032A7465BE802B868A5C1193C8AB2FCE95E84A19A5A32BF3055C51544E4035DFEB90E68A4D26B0B77EE8CA7C0157806A9EA29AEBB1D7F973A4B9E273E9E8CA7C01572A2ADBB51EAB3457E20C15BA325FC0D55CAF9DA0EAB6CE765BEAFCD9325CF9ECE25C3ABA325F882B86AACB72B52BA7AE284B8E2B712E1D5D992FE08AA2CABDDA9973B533BB568AAB88CF217E4083AECC1770C5505DE9CCBED29125E77805AEC4152FE8CA7C01570455074105C7ABBA2219E32BEA4AFB1C195D992FE00A44812B721EECCA95F37E105C898B13D095F9425C752AA860E82ED195B6E2055D992FEC3C384B51C1005E9A2B71611EBA325FD8B89DF78FADF7CBF81C2752E410577B163AD195D9425C094D89E57C3E08AEC425C41E7465BAD0F92BAD2971BD94753215D4155F428CAECC173ADFAEF58F95B3FEAAA2284F5C978EAECC17FAF9A0D69438562C631D3273C52FF44357E68BB29E41ED742D677D3BB812AF1EF538ADE8CA64A1AEB4F6E9325DF1AB47D195F942D7F5295B87D0EB71645C3F08AEC40BFDD095F942D7216BBB3CC8B92EB5C29F275E3D8AAECC17EA4A41B530E095D39F015C899724A32BF3855E8FA3F48F5D18F4C971150557428F177465BE10572AAAC5A1A286A08C3E45E04A6CC781AECC177A5D2A694A0CA89686FC0D52FA5F1157428F177465BED0EBE895FEB14BC38146297D20C195D8E3055D992FC4958A6A391994E78AB6F0628D83D095F902AE585362D69851962BA7D8340F5D992FE04AE91F4B1B334A75A5B6384357E60B71459B12D3067AA54DA532F69B20AE84A679E8CA7C015762AB4F39AE2A8B9D6227466F3EBA325B982BDEEA539E2BA1BD27BA325FC095D83F56CEBE4BE04AEC978EAECC17E68A37256E92B24F1C7125B4B64657E64B16D9C7446BF52967FF417025F64B4757E60B73C5BB324A74A5F54B4757E64B16DBCF4BDDE5419A2BB1093FBA325FA82BADD5A74C577CAF107465BE64917D2DB5AD43E4EC470FAEC40D68D095F9425D69FBD1C8715515708ABB1AA12BF3258BECEFACB5908D4B72952FEE6A84AECC972CB21FBDB6175BBCCC25D315DB2A0B5D992FDC156BF529D315DF26125D992FE04ADCE04F9A2B71EF517465BE5057DAAE912D6179AEF83691DE7C1BBA3259C095B80DB73457E2DEA3E8CA7CA1AEB41D9325BB623BC6A22BF3055C89DB70CB74C5B7484657E60B73C5B7E16E29774B70551DCC17F7DD4657E60BB8125B7DCA74C53773F7B9D095D9C25C315450ADB25C7154BF7E86AE4C1870A5B4FAA48D1965BA0251ACD095F9C25CB1FEB1325D71547FFF1C5D9930E08AA37A78065C15C87405A8D09529435D29FD631F9EA991E98AA26AF9ED720BBA325FC01547F53DB88A4872C551A12B5386B862A86857C63679AE1454CCD5C6C6C6E641F2F2E5CB43FCE8ADAD2DF8DE437C23B03FD0DDC3802BB1D5A72C572E8E0A6A341EA829711DA882850EB8E7C96472735727C075656505BE2C1A8DC2D787BC0E200DFFC7E3F1C03FCECCCCFCFEFBEF6FDFBEDDE9DBC1E1D4D414F97AA735EA7746FD79BC2AA08AC4724458F952AA1CCA6B57CB1686F2B0B2B22A2BB4A8954BAA2037442A47ADEC5237AF2CB5947F0941695F991352BE97DE8E76B350D632F5C7A93F5D2DAF3DACDDBDD4F291D23D1CA5E823AD502A4F5FF4C981011547B53625C915C0E0A89E7C01D5AAAB7FCCF06A63F5CF2F75D5FEAFAFDA17276A6B4B5D204477F8022A00062CB5473D67BB42D78F57DD9FAAFFE5D338149BE77F74BE616E34FA716F596F8D0FBE6C6D6DEDCD9B37E22DC05F415D49A1FD52A2EC316DD5F568AA169E22F25C9DA981C33B79A773AA9A4CD19CACBA7FB2F2DE64E5BD89CAD589E8DD71A88A3B272AEE8C456E8F45BE3D5E4E2F770A7D3D5A7AEB68C9AD91E04A32B09CF42F0F172D0DF91607BD0BA40967E1CD7EF78D23AE1B7DF9D713CEF944DE5CAF5DD9CCBDDBA2EC922CEC3D3ADB6599EDB68ABB1ACD93EFCA17FBA5DFEC2F24BD3D854E8C4BC3C54AE320B5C78B7A9D7B9978A19F78B183B8B7BBB8BFADB8179BBA1F4DB5384A67472ADE3FF6917457E9A804517BA0E205BA1289043BF2BC7EFD1A900095237545DF7D1483B32D7BE329A2FAF91294B2FA6BFD62E3FDB375A34DC52525257064633E9F3D7B168BC53EEA2C797CAE9EA09A4A45459F4386EABE862A2AA2BAADA00A93D76B5444052F2EBCC41C55E10231405091AD19C8C61F0E0D5597E56A17D9CC9DA0A27B8FF26D22D9E66BDA06341A2AADB53569182B746264FDCDC41E2FEC22771D2A264A874A5CF1B26F54B562ABCF7689AE7645D5B64F54F057F8C7F54FE2FDF57E87C3013C4EB4061F7FDC08A25251356F8B0A8A5EC1D1F0F85C6CB23558ECB6C159AF21E4BA3359CD3ABF01AA35868A1EA6F4A82609AA558EEA044755CE5091D78E1C19E028114845C50E531C9593A022071FFB350515394C3154577747D5976154E2BAF4D4C3941ED58353DA0C95384AD7A17A2CD1D57E50A589DA1E15FB627623BF5D866AD919551343B57EB14915D5C82E8F65D7F5FF783EF6C379D2984B45559B8E4A3DF7E950D1731F4505E71101153D4C715443F05A7B35540403A820E73E82AA87A152CF7D3A54DDA9A812DBA11A484535BC1B2A2AAA4CBC7AF460A84E8BA86ABE4F4525F68F25AE2A0A65B94A4175E56874CFB13A0CA5C4827FE98FF975A854512DE2B96F6EB4F25873A02A90CFAAAED40527BEE944781B54E714547C40355CEF333E4AAFF0D9E6FB7DECDC37589567BE517A34AD6040F54868F5F95E5CC1316ABC2D08E3E403BD9385F77A3E976DBBC39482EA878F1B27DA826E870506F630E8E2DFF8FCF973F8EBF4F434FCA7E158D13713D5B469527D3A2AF8ED83A7E8C9932706DF74C3D979A6C7C346E9F0D21BBFC13F7E603821B6FA94EC8A9FFBC015BCD607BA9D57AF5E3157DB9EFBAE8E44BDF9B6D5D55518C9EF740BF09FD6D7D7614C75A63D48446D374A875FC9CD434D798981F7115F7417B2513A1C5E8CDFE01F3FC4958A0A7E6765BA120754E36D258773B52DAAC9B6E0F8F8B86EEA60A7C0BBC8F9F9F978D8FDF04C6DFA283D53AE2E77B1B7FFEE0FC7154705A783F6A82457BA51BA01577A54C7E301384C1DF45EC1593556EAFAEE748D6E949E39572E364A8711D187E24A6DF5F9E38558876C576D065DE946E930A03A042A1618F6F4567B746FFD32E5EAF34E2799F6EC73C290FB0371C5FBC7FE24DB95369F70685722AA95899A4422B1CBE7327B666A6AEA2F3DA5E25C3ABC09CA8CAB0E279B4BFF905C29A87EBAD020D155CA24950157DA7C42C4EF7CF1E28591FB0623798FD3B23A59C5E7D2231972F559BB83CDA57F38AE1454742647B22B3EE17968577CDA736EB432994C1ABF7BD3D3D31F7504F8B467C49719579FB6D9D95C7AC89DFDE1B8E25D19A5B9D24DA41FCE9537DFC6E7D2BBAA3C19B9E79B74FB693E979E29579FB4DAD85C7AE907E34A6CF5D911CDCCABB34BB673D53ED17E4857FC233F87C361646425865E53493FA019CF98AB4BAD16B638E14373C51A337656CA77453EE93BB42BFE39323C904CDD43D65B802D4EC894ABE9965CF6A95FA93BEB0371454535B0AE8CD25D299F201B70A52C4EC8AC2BBEE2A53C43AE2EC695C5091F922BADD5A75C57DACA84C3BAB2F2152F1976A52E4E28F7D933E44A599C00E7C1999999B5B4ACAFAF67EA3C2E275B5B5BE98F8287B9E2DD3E25BA4A59F172D871BB95AF78C9AC2BBEE2A5DC9B2157CDCA8A9753F5391DA19C4EA8B25C5A96AE3094D56DFF938DBBE0B7A321E41E69F41F4DADD126A8E20B3D21A1856C931C57B5A5AED46554877E3F68E5CBA832EB4A5946752C9C3157F16C7509F1F6CBA8FCF9397004C8C4DD971478BD40119BF614DFFA898729D63F162A53EFD67789E88A2FCC3BB42BB6DA131E51665DF175E9E55E5B865CEDB62E7D2EE1F6783C7FAEF3E0B367CFE078C55189A3741D2A1803CB7425AEF63CD17A987532D495F2B81C0E4752C8EAEAEAFE5F2618DB88DF6BC9C9E6EBD2C31972351DCFDD655DFAF9787E229130F85324E7F5EBD72E87453C4CA5A2D2FAC752575E39AE744B880FED8AAEF6240B3E97C6AABE1A2AFF72102A0CD51C76EFF306373636223EC7747770BA2B0075B1ABF8CBBE205F971EF664C6D5A516CB2EEBD283EE5C839F40BD97C02FEF583CB0272A3A6B2DC3157B3F282E213EB4AB9DD6A59FED200B50F7733BF06593CD453BAD4B0F7BAC199A17B56EBB2E7D2E51D05C623BF41A8CF71B3823947A1C334391745462FF5899AE382ABA30AF75ACE5C0AEE041812BB68A78DB75E92B2B2BFBB99D274F9EB495BBD8283DE542BF91C0FC80DFEBCC3DDCB5D562A6A6A646ABAD3A54E7E3CEE16A873F3F17CEC2066FFF3D06CE86E3E3E3AD9182E9BEF03793D5DBA282AA0EE63F7FFEFC9DDE13711D325FED79085710F81580537CD67681E1CA3E7B3EBC79F3069E996D6FC46EC9CEC88B0E6FF462B158FA3D9C9F9F378EF68F10184B4C4F4FA73F469E7DFE8E1B0977252E211E6B091CC21506C3B3A95C979AB22E1D5D610C467595B22EFD781C5D610C6593F693D1AD4B4757188361AE749724A32B8CC16CAA7D20C51E2FC79AD115C65036953EDB293D5E8E3517A32B8C91A8AE527ABCA02B8CC16CAAFB9888ADA8469BD015C650982B5D7F33748531984D759F38B1691EBAC218CCA6B0BF33EFC438DAE447571823D954F6A34FE9C478B4115D610C457595D2DE135D610C86B9E2EBD2597BCF910674853114D59586EAC7F3E0AA085D618C84BA72F275E9AC672CBAC2180CB8AA2C76EAD6A52763E80A6328DC95B82E1D5D610C86B9D2F54B4FC67CE80A6324CC95AE5FFA703DBAC2180A73A5DBD5085D610C065C45FD4EDDAE4643E80A632CCC956E9BC8A13A2FBAC218097595A7DB7B145D610C86B9D2ED3D3A88AE30C6C25CE9F61E1DAC45571843210DD2C155EADEA383B51E74853112D6785F40453AF00FA02B8CB1305722AA7B13950335E80A6328CA46211A2AB2EF763FBAC2188B6E031AB6B3437F7521BAC2180975E51050910EFCE80A6330E02A52E460BB1A3154774E448EA02B8CB110573E07DF80E6CE58E4F658E4485501BAC21889EA4AD9808636220EF755EDB72D3606B36D982B1595D2DABAAF125D610C85B9D2F54BEFAB74A12B8C9180AB729F43D72F3D11CD4757182321AEBC76B6AB116FC28FAE3006A3B81A1576764816F75638D115C648982BB6ABD1CA4800502D0FFB7B2BF2D015C648A82B1BDB8086A15A1A2AEAA970A02B8C9180ABB0C706A89609AAA2A521DFE2A0B72782AE3086C25C2D27FD1CD5C280A7276247571823A1AEAC4B1AAAC285FE82EE721BBAC21889E28AA0F200AA9BFD0537FBDDE80A6330E0AACC63D150918D68F3BBC25674853112E2AAD042518128D70DB279A8B32B6C4157182361AE345409E77C22AFB32C175D618C84BACA0554649B63B2DFB163AED78EAE3006C35CC1B98FA0EA25A8AEF5D83A4339E80A6324E02A54903BCF50F51054D7BA2D1DA1EC6432B9B643DEF556E6181384BACAA1A86CD77AACB3DD96D9AEDCCB6D39EDA559501DA5D960AC239403050731383F4279F2B2B7B6B6DEF71DC7FCA1C35C1154DD0AAAAB9D39573AB2AE7464C3FFB9DA953BDB6599EDB65EEB0675F63972A2CCAB2FB63C7DFAF47DDF71CC1F3ACC1541D565B9DA9573B5331B50C1FF02AA598A0AFE139C1CE728AAF95E18D83B63E80AB357882B77363B4C715417E339ECF4C7CF7DBDE570D422A8E06D63ACD88AAE30BB075C95BAC9D1E98A70A44A1FB747A3D1338D763217D1E78A05D015668F3057309A1207541D69F30CC0EC6C930350DD38E24657983D435DE947E99D21FDBC2875E5045437FB0B63011BBAC2EC1EE64A374A4F9F6F67AE00D5CD7E4F43105D61F6083B0FEADEFA7596E93F77065753CDF937073C0B03DE86A01D5D61768FE2AA3B653E217D3D0371157701AA85411FBAC2EC19E62A65922A9197BEFE0A5C7D147703AAC5A1A286A0035D61760F9DBFCAE173E9F3649D4C7E5758BF5E145C9D6B7103AAA5217F4309BAC2EC11E5731C752EFD7A82CC50A5AF435E5D5DAD2BB69F6BF19C8D7BBC4E0B7E3E88D93DEAE7CECA5C3A9BA1EA2ED75F8FF3F6EDDBF5F575386A8D8F8FE37A06CC9E515C09A86E1C29487785C11C286CFD95868A5C8F53D88DD7A5628C85B9A28729379BF65C18C0EB9D3146A3AE6F2FE0A816067D3D11ECFB813114F57A9C4236974E66A8068B7AB04F11C658145702AAC5213FF6BFC2188C7A5DAA97CDA52F0DF997868B7B2BB05F1FC65098AB4501D5F270A017FB40628C85BAB2C2B96F69A8786938B09C0C2E274B1251EC878C3114DAF7C32AA25A19294557188351FB5F69A8882BDC1700632C6ABFBEE08A8AEAD6D110BAC2188CDA5FB4848A22A8A0701F138CC1A8AE14515F9346EEDBEC8F035FE6F178B2681289C4DBB76FDFD3FDC5FC39C25C89A888ABB4FDBCA6A7A74FB7F8EF9C88DC1DAF6828CDDFD8D8784FF717F3E70871E5B5735474431370A5DF7F30994C4E7707001554BCCC85EB4531BB87B9125085BF3D1E4EDFD7125C5DEA0902AAD5097485D93BCA3E2602AA9D5C7DD21B647B40B784D115668F08FB7929A86E8F951FA92E989999D914D2D6D6F6496F09A0BA3789AE307B4775A5A18282A154C4E710AB2EE8BC753C02A8EE4D56A22BCC9E61AE28AA72860ADEF4B162A3741850B1C3144375FF24BAC2EC1DD5550AAABBE3DBA00251B4AA5ACADDE80AB37B5EBF7E5D9867B93658AA43C544A9A898A8CAEF4E552D1FAFA828CAC34BBD307B666363036865ED2F2E7BEE93274FDEF75DC6C8CEFF03B30313BC

Obrigado

Partilhar esta mensagem


Ligação para a mensagem
Partilhar noutros sites

Crie uma conta ou ligue-se para comentar

Só membros podem comentar

Criar nova conta

Registe para ter uma conta na nossa comunidade. É fácil!

Registar nova conta

Entra

Já tem conta? Inicie sessão aqui.

Entrar Agora

×

Aviso Sobre Cookies

Ao usar este site você aceita os nossos Termos de Uso e Política de Privacidade. Este site usa cookies para disponibilizar funcionalidades personalizadas. Para mais informações visite esta página.