O gerenciador de fotos do curso trabalha apenas com links de fotos, não com binários. E se eu quisesse enviar e receber os binários das fotos, teria como? Se sim, como deveríamos trabalhar com os binários no angular?
Obrigado.
O gerenciador de fotos do curso trabalha apenas com links de fotos, não com binários. E se eu quisesse enviar e receber os binários das fotos, teria como? Se sim, como deveríamos trabalhar com os binários no angular?
Obrigado.
Pra facilitar e suportar o maior numero de browsers possivel, eu converteria essas fotos binarias em string base64 pra usar como data uri. Aí no fundo vc tem só uma string que pode salvar, colocar no json, usar no angular direto etc.
Exemplo:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAABkCAYAAAC4or3HAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAKilJREFUeNrsfQ10XMV971+r1Zcl4ZXBcg2xLQlqUhsbmbYGQyhSMK8vJzGWT5u2AYKlV1KauCfGJSU9ocU2PXBK3nGw30leG6DPcmNKzktyLGNIzqltvE4AA0lAGOwUU+vDgG1JxV4jrb4/Or+5M+vZ2blfq921ZN8/57Ly7ty5c+/9//7fM0MUUEABBRRQQAHlnvKm02Bvu+22OvZRJQ4TdbAjevDgwY7g1QYUAPjCAxZAbWDHanbU+TgVAN7Bjq0MzLHgNQcUADj3mnajDtr84kIqnjuLCirK2FFOY4ND7Lsi/tvYwBANnTpD8fbTenebAyAHFAA4N8CtZR9PqsAFYCM3/DbNqP4t/rdKQ5/0UmHpDMrLz098NzY4TL1HT1DPS2/RyNk+VSM3MRBHg1ceUADg7IB3k9C6nGbWXk2VK2/g2taORgcG2B3kUbi42Ph77M3/pK4XX+egltqYgXhT8NoDCgCcOeBG2Md24etSKdO0c+68iUIlBVRYXuZ47sT4OA339vF2eaGQsQ3Ae/Inv+BaWVAzA3FT8OoDuhgo/0JdOHbo0ar/9UcrHoi+dfqfhkfGb8J3v/X5G2nu6pspXFpCY8OW1gyF7YeYlwf5M0HjwyOUX1hgbIPzZy6tofySIup7/yN8VVvFqLOzc3fw+gMKNLA/0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taJNdAOcCxAAeAly3MyA/t6+dm9WIIstIMoo/AFhpJkvgoigjB3v5grHWBOCdNAGk7QLEcopesxIZBnAPKG2kv93kVNBhMEVxHQDvLfa5Q3yHINP1on+51liD+HTK4yOqvovOF2uANoh0lVxMQPeD1Sg6rrtACKoGysCWRmmrKAHimABxVmpD4Rs/9hcV1H6ql/YzbYy8MaYmqpFqBKgAdGjtLGpcNWAVmM2Z8fGalEojRI23aekg8NYyERHGsVuARTWfN9iY07ofWi/AUiXNXWhOAeg6xX91C7y1sHOqFeCp420WwkDek/TlWw33vY3OzyXW29hZF/Um8z5vsi+CgVgmwKty8eIB4O6zAwmA55A2MPAGM4wyQChWUAsrAkqfQpPtQOQ/l1HmVl50JJjHciPxHFFM+LsBeAO6+AAsQBwTKy9uoGm8jaaBIJSqxbrZAQV0cQJYAfJW8lalM9UJQgiBqiBYlR2qDx5BZihrfgjzjRvJCplXTbNnAiG0OQBuQJc0gAWIEd1D3s7rUqEXkpoFcDsCtggoAHAqkBsFkKsC4AYU0DQCsAZm5NBQStZwAe8bYEUurjkwlQMKAJy+VpYLZOcCzEh3Rdmx41KZ+hdQAOBcArqOrAoWFLTXZsBnjgrQot40GpjIAQUAzr2GlkD2MsWrQx4BWAMKKKCAAgoooIACyh79twADADjRyJhbaJj6AAAAAElFTkSuQmCC">
Muito interessante! Não conhecia a possibilidade de se encorpar na uri do link um arquivo binário. É possível utilizar essa técnica para baixar um binário de um pdf, excel ou zip? Ou ela possui limitações quanto aos tipos suportados?
Obrigado!
Pode ser qq tipo. Só que essa string fica bem grande rapidamente. Tem que testar bem se um PDF gigantão não vai travar tudo.
Geralmente pessoal usa pra imagens pequenas/medias...
Obrigado.