{"id":6961,"date":"2024-12-18T11:30:11","date_gmt":"2024-12-18T08:30:11","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/"},"modified":"2024-12-18T11:30:11","modified_gmt":"2024-12-18T08:30:11","slug":"spring-boota-dosya-ve-json-verisi-gondermek","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/","title":{"rendered":"Spring Boot&#8217;a Dosya ve JSON Verisi G\u00f6ndermek"},"content":{"rendered":"<p>Spring Boot&#8217;a Dosya ve JSON Verisi G\u00f6ndermek<\/p>\n<p>Merhaba! Bu makalede, Spring Boot uygulaman\u0131za hem bir dosya hem de JSON verisi i\u00e7eren tek bir istekte nas\u0131l veri g\u00f6nderece\u011finizi ad\u0131m ad\u0131m a\u00e7\u0131klayaca\u011f\u0131z.  Bu durum, \u00f6zellikle resim y\u00fckleme ve ilgili meta verileri ayn\u0131 anda g\u00f6ndermek gerekti\u011finde olduk\u00e7a faydal\u0131 olur.  \u00d6rne\u011fin, bir e-ticaret uygulamas\u0131nda \u00fcr\u00fcn resmi y\u00fcklerken, \u00fcr\u00fcn ad\u0131, fiyat\u0131 ve di\u011fer bilgileri ayn\u0131 anda g\u00f6ndermek isteyebilirsiniz. Bu i\u015flemi ger\u00e7ekle\u015ftirmek i\u00e7in \u00e7e\u015fitli y\u00f6ntemler mevcuttur ve bunlar\u0131 birlikte inceleyece\u011fiz.<\/p>\n<h2>Multipart\/form-data Kullan\u0131m\u0131<\/h2>\n<p>En yayg\u0131n y\u00f6ntem, HTTP&#8217;nin  multipart\/form-data i\u00e7eri\u011fi t\u00fcr\u00fcn\u00fc kullanmakt\u0131r.  Bu y\u00f6ntemde, dosya ve JSON verisi farkl\u0131 alanlar halinde g\u00f6nderilir.  Spring Boot, bu t\u00fcr istekleri kolayca i\u015flemek i\u00e7in gerekli ara\u00e7lar\u0131 sa\u011flar.  \u0130\u015fte Spring Boot taraf\u0131ndaki kod \u00f6rne\u011fi:<\/p>\n<pre><code class=\"language-java\">\n@PostMapping(\"\/upload\")\npublic ResponseEntity&lt;String&gt; uploadFile(@RequestParam(\"file\") MultipartFile file, @RequestParam(\"data\") String jsonData) {\n    try {\n        \/\/ Dosyay\u0131 kaydetme i\u015flemi\n        Path filePath = Paths.get(\"dosyaYolu\", file.getOriginalFilename());\n        Files.write(filePath, file.getBytes());\n\n        \/\/ JSON verisini i\u015fleme\n        ObjectMapper objectMapper = new ObjectMapper();\n        Map&lt;String, Object&gt; data = objectMapper.readValue(jsonData, Map.class);\n\n        \/\/ \u0130\u015flem ba\u015far\u0131l\u0131 ise\n        return ResponseEntity.ok(\"Dosya ve JSON verisi ba\u015far\u0131yla y\u00fcklendi!\");\n    } catch (IOException e) {\n        \/\/ Hata y\u00f6netimi\n        return ResponseEntity.badRequest().body(\"Y\u00fckleme s\u0131ras\u0131nda bir hata olu\u015ftu.\");\n    }\n}\n<\/code><\/pre>\n<p>Bu kodda,  @RequestParam anotasyonu ile dosya ve JSON verisi ayr\u0131 ayr\u0131 al\u0131n\u0131r.  MultipartFile aray\u00fcz\u00fc dosyay\u0131 temsil ederken,  String ise JSON verisini tutar.  Daha sonra,  ObjectMapper s\u0131n\u0131f\u0131 kullan\u0131larak JSON verisi bir Map nesnesine d\u00f6n\u00fc\u015ft\u00fcr\u00fcl\u00fcr.  Elbette bu kodu ihtiya\u00e7lar\u0131n\u0131za g\u00f6re uyarlayabilirsiniz.  \u00d6rne\u011fin;  JSON verisini do\u011frudan bir POJO s\u0131n\u0131f\u0131na e\u015fleyebilirsiniz.<\/p>\n<h2>Alternatif Y\u00f6ntemler<\/h2>\n<p>Alternatif olarak, dosyay\u0131 ve JSON verisini tek bir nesne i\u00e7inde birle\u015ftirip  @RequestBody anotasyonu ile alabilirsiniz.  Bu y\u00f6ntem i\u00e7in,  dosyay\u0131 byte dizisi olarak veya base64 kodlamal\u0131 bir string olarak  JSON verisinin i\u00e7ine eklemeniz gerekir.  Ancak bu y\u00f6ntem, \u00f6zellikle b\u00fcy\u00fck dosyalar i\u00e7in performans sorunlar\u0131na yol a\u00e7abilir. Bu y\u00fczden  multipart\/form-data y\u00f6ntemi genellikle tercih edilir.<\/p>\n<p>Ayr\u0131ca,  kullanaca\u011f\u0131n\u0131z frontend teknolojisine g\u00f6re  FormData nesnesini kullanarak da dosya ve JSON verisini tek bir istekte g\u00f6nderebilirsiniz.  Bu y\u00f6ntem,  multipart\/form-data  y\u00f6ntemine benzer \u015fekilde \u00e7al\u0131\u015f\u0131r. Frontend taraf\u0131nda,  FormData nesnesine dosya ve JSON verisi eklenir ve  Spring Boot uygulamas\u0131na g\u00f6nderilir.<\/p>\n<h2>\u00d6nemli Notlar<\/h2>\n<p>Dosya y\u00fckleme i\u015flemlerinde g\u00fcvenlik \u00f6nlemlerini almak olduk\u00e7a \u00f6nemlidir.  Y\u00fcklenen dosyalar\u0131n t\u00fcr\u00fcn\u00fc ve boyutunu kontrol etmeli, zararl\u0131 dosyalar\u0131n y\u00fcklenmesini engellemelisiniz.  Ayr\u0131ca,  dosyalar\u0131n g\u00fcvenli bir konuma kaydedildi\u011finden emin olmal\u0131s\u0131n\u0131z.  Bu konuda detayl\u0131 bilgi i\u00e7in  <a href=\"https:\/\/fatihsoysal.com\" target=\"_blank\">fatihsoysal.com<\/a>  sitesini ziyaret edebilirsiniz.  Ayr\u0131ca,  dosya y\u00fckleme i\u015flemlerinin performans\u0131n\u0131 iyile\u015ftirmek i\u00e7in \u00e7e\u015fitli teknikler kullanabilirsiniz.  \u00d6rne\u011fin,  asenkron i\u015flemlerden faydalanabilirsiniz.<\/p>\n<p>Bu makalede, Spring Boot&#8217;a hem dosya hem de JSON verisi g\u00f6ndermenin farkl\u0131 yollar\u0131n\u0131 ele ald\u0131k. Hangi y\u00f6ntemin sizin i\u00e7in en uygun oldu\u011funa, projenizin ihtiya\u00e7lar\u0131na ve tercihlerinize ba\u011fl\u0131 olarak karar verebilirsiniz.  Umar\u0131m bu bilgiler size yard\u0131mc\u0131 olmu\u015ftur!<\/p>\n<p><strong>Faydal\u0131 Kaynaklar:<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/dev.to\/seanevans\/sending-both-file-and-json-in-one-request-to-spring-boot-3mgb\" target=\"_blank\">Sending Both File and JSON in One Request to Spring Boot<\/a><\/li>\n<li><a href=\"https:\/\/spring.io\/guides\/gs\/uploading-files\/\" target=\"_blank\">Spring&#8217;s Guide to Uploading Files<\/a><\/li>\n<\/ul>\n<p>#Etiketler: Spring Boot, Dosya Y\u00fckleme, JSON, Multipart\/form-data,  @RequestParam, @RequestBody,  MultipartFile,  ObjectMapper,  HTTP,  REST API,  Frontend,  Backend,  Java<\/p>\n","protected":false},"excerpt":{"rendered":"Spring Boot&#8217;a Dosya ve JSON Verisi G\u00f6ndermek Merhaba! Bu makalede, Spring Boot uygulaman\u0131za hem bir dosya hem de&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_page_header_type":"","csco_page_load_nextpost":"","csco_page_subscribe_form":"","csco_page_contact_form":"","footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-6961","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-genel","7":"cs-entry","8":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spring Boot&#039;a Dosya ve JSON Verisi G\u00f6ndermek<\/title>\n<meta name=\"description\" content=\"Merhaba! Bu makalede, Spring Boot uygulaman\u0131za hem bir dosya hem de JSON verisi i\u00e7eren tek bir istekte nas\u0131l veri g\u00f6nderece\u011finizi ad\u0131m ad\u0131m a\u00e7\u0131klayaca\u011f\u0131z. Bu durum, \u00f6zellikle resim y\u00fckleme ve ilgili meta verileri ayn\u0131 anda g\u00f6ndermek gerekti\u011finde olduk\u00e7a faydal\u0131 olur. \u00d6rne\u011fin, bir e-ticaret uygulamas\u0131nda \u00fcr\u00fcn resmi y\u00fcklerken, \u00fcr\u00fcn ad\u0131, fiyat\u0131 ve di\u011fer bilgileri ayn\u0131 anda g\u00f6ndermek isteyebilirsiniz. Bu i\u015flemi ger\u00e7ekle\u015ftirmek i\u00e7in \u00e7e\u015fitli y\u00f6ntemler mevcuttur ve bunlar\u0131 birlikte inceleyece\u011fiz.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Boot&#039;a Dosya ve JSON Verisi G\u00f6ndermek\" \/>\n<meta property=\"og:description\" content=\"Merhaba! Bu makalede, Spring Boot uygulaman\u0131za hem bir dosya hem de JSON verisi i\u00e7eren tek bir istekte nas\u0131l veri g\u00f6nderece\u011finizi ad\u0131m ad\u0131m a\u00e7\u0131klayaca\u011f\u0131z. Bu durum, \u00f6zellikle resim y\u00fckleme ve ilgili meta verileri ayn\u0131 anda g\u00f6ndermek gerekti\u011finde olduk\u00e7a faydal\u0131 olur. \u00d6rne\u011fin, bir e-ticaret uygulamas\u0131nda \u00fcr\u00fcn resmi y\u00fcklerken, \u00fcr\u00fcn ad\u0131, fiyat\u0131 ve di\u011fer bilgileri ayn\u0131 anda g\u00f6ndermek isteyebilirsiniz. Bu i\u015flemi ger\u00e7ekle\u015ftirmek i\u00e7in \u00e7e\u015fitli y\u00f6ntemler mevcuttur ve bunlar\u0131 birlikte inceleyece\u011fiz.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-18T08:30:11+00:00\" \/>\n<meta name=\"author\" content=\"Fatih Soysal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fatih Soysal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"Spring Boot&#8217;a Dosya ve JSON Verisi G\u00f6ndermek\",\"datePublished\":\"2024-12-18T08:30:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/\"},\"wordCount\":522,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/#respond\"]}],\"copyrightYear\":\"2024\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/\",\"name\":\"Spring Boot'a Dosya ve JSON Verisi G\u00f6ndermek\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2024-12-18T08:30:11+00:00\",\"description\":\"Merhaba! Bu makalede, Spring Boot uygulaman\u0131za hem bir dosya hem de JSON verisi i\u00e7eren tek bir istekte nas\u0131l veri g\u00f6nderece\u011finizi ad\u0131m ad\u0131m a\u00e7\u0131klayaca\u011f\u0131z. Bu durum, \u00f6zellikle resim y\u00fckleme ve ilgili meta verileri ayn\u0131 anda g\u00f6ndermek gerekti\u011finde olduk\u00e7a faydal\u0131 olur. \u00d6rne\u011fin, bir e-ticaret uygulamas\u0131nda \u00fcr\u00fcn resmi y\u00fcklerken, \u00fcr\u00fcn ad\u0131, fiyat\u0131 ve di\u011fer bilgileri ayn\u0131 anda g\u00f6ndermek isteyebilirsiniz. Bu i\u015flemi ger\u00e7ekle\u015ftirmek i\u00e7in \u00e7e\u015fitli y\u00f6ntemler mevcuttur ve bunlar\u0131 birlikte inceleyece\u011fiz.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring Boot&#8217;a Dosya ve JSON Verisi G\u00f6ndermek\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/\",\"name\":\"Fatihsoysal.com\",\"description\":\"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim\",\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\",\"name\":\"Fatih Soysal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"contentUrl\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"width\":512,\"height\":512,\"caption\":\"Fatih Soysal\"},\"logo\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Spring Boot'a Dosya ve JSON Verisi G\u00f6ndermek","description":"Merhaba! Bu makalede, Spring Boot uygulaman\u0131za hem bir dosya hem de JSON verisi i\u00e7eren tek bir istekte nas\u0131l veri g\u00f6nderece\u011finizi ad\u0131m ad\u0131m a\u00e7\u0131klayaca\u011f\u0131z. Bu durum, \u00f6zellikle resim y\u00fckleme ve ilgili meta verileri ayn\u0131 anda g\u00f6ndermek gerekti\u011finde olduk\u00e7a faydal\u0131 olur. \u00d6rne\u011fin, bir e-ticaret uygulamas\u0131nda \u00fcr\u00fcn resmi y\u00fcklerken, \u00fcr\u00fcn ad\u0131, fiyat\u0131 ve di\u011fer bilgileri ayn\u0131 anda g\u00f6ndermek isteyebilirsiniz. Bu i\u015flemi ger\u00e7ekle\u015ftirmek i\u00e7in \u00e7e\u015fitli y\u00f6ntemler mevcuttur ve bunlar\u0131 birlikte inceleyece\u011fiz.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/","og_locale":"tr_TR","og_type":"article","og_title":"Spring Boot'a Dosya ve JSON Verisi G\u00f6ndermek","og_description":"Merhaba! Bu makalede, Spring Boot uygulaman\u0131za hem bir dosya hem de JSON verisi i\u00e7eren tek bir istekte nas\u0131l veri g\u00f6nderece\u011finizi ad\u0131m ad\u0131m a\u00e7\u0131klayaca\u011f\u0131z. Bu durum, \u00f6zellikle resim y\u00fckleme ve ilgili meta verileri ayn\u0131 anda g\u00f6ndermek gerekti\u011finde olduk\u00e7a faydal\u0131 olur. \u00d6rne\u011fin, bir e-ticaret uygulamas\u0131nda \u00fcr\u00fcn resmi y\u00fcklerken, \u00fcr\u00fcn ad\u0131, fiyat\u0131 ve di\u011fer bilgileri ayn\u0131 anda g\u00f6ndermek isteyebilirsiniz. Bu i\u015flemi ger\u00e7ekle\u015ftirmek i\u00e7in \u00e7e\u015fitli y\u00f6ntemler mevcuttur ve bunlar\u0131 birlikte inceleyece\u011fiz.","og_url":"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2024-12-18T08:30:11+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"3 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"Spring Boot&#8217;a Dosya ve JSON Verisi G\u00f6ndermek","datePublished":"2024-12-18T08:30:11+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/"},"wordCount":522,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/#respond"]}],"copyrightYear":"2024","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/","url":"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/","name":"Spring Boot'a Dosya ve JSON Verisi G\u00f6ndermek","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2024-12-18T08:30:11+00:00","description":"Merhaba! Bu makalede, Spring Boot uygulaman\u0131za hem bir dosya hem de JSON verisi i\u00e7eren tek bir istekte nas\u0131l veri g\u00f6nderece\u011finizi ad\u0131m ad\u0131m a\u00e7\u0131klayaca\u011f\u0131z. Bu durum, \u00f6zellikle resim y\u00fckleme ve ilgili meta verileri ayn\u0131 anda g\u00f6ndermek gerekti\u011finde olduk\u00e7a faydal\u0131 olur. \u00d6rne\u011fin, bir e-ticaret uygulamas\u0131nda \u00fcr\u00fcn resmi y\u00fcklerken, \u00fcr\u00fcn ad\u0131, fiyat\u0131 ve di\u011fer bilgileri ayn\u0131 anda g\u00f6ndermek isteyebilirsiniz. Bu i\u015flemi ger\u00e7ekle\u015ftirmek i\u00e7in \u00e7e\u015fitli y\u00f6ntemler mevcuttur ve bunlar\u0131 birlikte inceleyece\u011fiz.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/spring-boota-dosya-ve-json-verisi-gondermek\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Spring Boot&#8217;a Dosya ve JSON Verisi G\u00f6ndermek"}]},{"@type":"WebSite","@id":"https:\/\/fatihsoysal.com\/blog\/#website","url":"https:\/\/fatihsoysal.com\/blog\/","name":"Fatihsoysal.com","description":"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim","publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":["Person","Organization"],"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1","name":"Fatih Soysal","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","contentUrl":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","width":512,"height":512,"caption":"Fatih Soysal"},"logo":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/"},"description":"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.","url":"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/"}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/6961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/comments?post=6961"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/6961\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=6961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=6961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=6961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}